summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)AuthorFilesLines
2007-03-31change locking semantics slightly and add missing locking bitsDavid Zeuthen1-3/+7
2007-03-31change locking semantics a bit and add guidelines for SystemPowerManagementDavid Zeuthen1-4/+11
The change in locking semantics is that a lock-holder can now access a device even if other processes have locks on the device.
2007-03-27fix up ReleaseGlobalInterfaceLock() and improve locking exampleDavid Zeuthen1-1/+8
2007-03-27clean up locking exampleDavid Zeuthen1-36/+3
2007-03-25add interface locking and remove generic locking API committed yesterdayDavid Zeuthen2-20/+51
Now to write some docs how all this works...
2007-03-24add named mandatory locking APIDavid Zeuthen1-0/+20
This provides a mechanism for clients to acquire (and release) named locks on device objects. More than one client can hold a named lock on a device, this is by design. If a client disconnects from the bus, it locks will be removed. The rationale for this new API is to allow clients to lock out other clients of service on given device objects; this is applicable for - installers (inhibit mount requests) - partitioning/formatting tools (inhibit mount requests) - multi-seat power management (inhibit suspend/hibernate etc. requests from idle (e.g. the user is idle) active (e.g. it is in the foreground on some seat) sessions that wants to suspend due to user preferences.) The next series of patches will make the various mechanisms use this API by defining well-known locks.
2006-11-28fix python shebang lineJean-Yves Lefort1-1/+1
Correct the python shebang line so that python can be found otuside of /usr/bin.
2006-08-03add script examples/watch-mount-state.sh for monitoring key state filesDavid Zeuthen1-0/+2
This is useful when debugging the Mount/Unmount functions.
2006-07-29add *~ to all .gitignore files for emacs usersDavid Zeuthen1-0/+1
2006-07-27Remove more unused stuff.David Zeuthen2-6/+0
2006-07-27Remove unused stuff.David Zeuthen2-106/+0
Remove libhal-policy, examples/volumed (it's defunt) and packaging (both Fedora and SUSE spec files look vastly different nowadays).
2006-07-27git stuff, mount/umount/eject all in C, .hal-mtab usage, light_sensorDavid Zeuthen1-0/+88
and keyboard_backlight additions including example. Remove ChangeLog and add rules to Makefile.am (from cairo) to generate the ChangeLog file from git history. Add support for light_sensor and keyboard_backlight on my Macbook Pro. Add an examply python script to examples/ to show how it's done. Move Unmount, Eject and related stuff to C. Start using the file /media/.hal-mtab instead of .created-by-hal to specify if HAL created the mount point. Also list tons of metadata such as uid, session id (still unused). Fixes the bug where the unprivileged hald couldn't look into /media/foobar/ for the .created-by-hal file. So now doing 'umount /dev/sda1' on a volume mounted by HAL, makes hald remove the mount point as one would expect.
2006-07-27add .o files to .gitignoreKay Sievers2-0/+2
2006-07-27.cvsignore -> .gitignoreKay Sievers2-0/+0
2005-05-23Never ever use sync as it reduces performance and makes people believe thatDavid Zeuthen1-2/+6
it wears out their drives (RH bug #157674) Fixup this a little bit Update the man page to reflect latest changes. Fix a doublefree when acquiring lock (RH bug #158474)
2005-03-01Fixup this function to work with the new D-BUS API (device_lock): BeDavid Zeuthen1-1/+1
consistent with new D-BUS naming, e.g. use info.locked.dbus_name instead of info.lock.dbus_service (device_unlock): -do- (service_deleted): Use NameOwnerChanged instead of NameLost as the latter only goes to the service who's lost the name (hald_dbus_filter_function): -do- (hald_dbus_init): Subscribe to NameOwnerChanged rather than NameLost Fixup to use get_unique_name() instead of get_base_service()
2004-09-19Removed (agent_merge_properties): Removed (agent_manager_remove): RemovedDavid Zeuthen1-0/+44
(agent_manager_commit_to_gdl): Removed (agent_manager_new_device): Removed (filter_function): Removed all the AgentManager methods (raise_udi_in_use): Removed Add docs for info.locked. Remove section about HAL agents as they are now gone. Fixed up renaming of scsi_device to scsi. Remove HAL Agents Update diagram since we now use a local socket from hal.hotplug and hal.dev helpers. New file; shows how to use locking
2004-03-01shut up cvsJoe Shaw2-0/+4
2003-12-24Forgot to add fileHAL_0_2David Zeuthen2-0/+6
2003-12-21be less verboseDavid Zeuthen1-10/+14
Add match for udev signals (osspec_hotplug): renamed to handle_hotplug since old name didn't make any sense (handle_udev_node_created): new function (handle_udev_node_created_found_device): new function (osspec_filter_function): add check for udev signals sleep a while so the kernel has time to populate sysfs (hmmm)
2003-12-08s/volume./block./ (udev_filter_func): new function for filtering D-BUSDavid Zeuthen1-0/+99
messages from udev (setup_udev_listener): setup filter for udev messages (hal_monitor_enter): Listen to D-BUS messages Use global sysfs path (device_hotplug_add): Use global sysfs path (device_hotplug_remove): Use global sysfs path (drivers_collect): Use global sysfs path (mainloop_integration): Save D-BUS connection object for later use (main): Get sysfs mount path once and for all Add dbus_connection and sysfs_mount_path as extern variables new function (filter_function): add check for Device.QueryCapability Minor formatting stuff Crude example of volume manager now that we got udev integration in place. It doesn't really mount anything but prints out when it should mount. You'll need a very recent udev from BitKeeper with D-BUS enabled (got the patch accepted today)