diff options
author | David Zeuthen <davidz@redhat.com> | 2007-03-31 22:37:48 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2007-03-31 22:37:48 -0400 |
commit | 4a36ab4a5c0b0b9b9c7e593e8d227af99cd3a5dc (patch) | |
tree | 9d5119c70ec138212780bb2d9d4ac5cc559329b4 /hald/device.h | |
parent | 975a4defadb47ec8d3d6156f3eb20f6a67ec3009 (diff) |
change locking semantics slightly and add missing locking bits
Diffstat (limited to 'hald/device.h')
-rw-r--r-- | hald/device.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hald/device.h b/hald/device.h index 5dd11f57..1942e2f2 100644 --- a/hald/device.h +++ b/hald/device.h @@ -53,6 +53,14 @@ struct _HalDeviceClass { void (*capability_added) (HalDevice *device, const char *capability); + + void (*lock_acquired) (HalDevice *device, + const char *lock_name, + const char *lock_owner); + + void (*lock_released) (HalDevice *device, + const char *lock_name, + const char *lock_owner); }; #define HAL_TYPE_DEVICE (hal_device_get_type ()) @@ -212,6 +220,8 @@ gboolean hal_device_release_lock (HalDevice *device, const char *lock_name, char **hal_device_get_lock_holders (HalDevice *device, const char *lock_name); +int hal_device_get_num_lock_holders (HalDevice *device, const char *lock_name); + /* static method */ void hal_device_client_disconnected (const char *sender); |