hal/doc/api/tmpl config.sgml, 1.2, 1.3 device.sgml, 1.3, 1.4 device_store.sgml, 1.2, 1.3 hal-unused.sgml, 1.2, 1.3 libhal-storage.sgml, 1.3, 1.4 linux_dvd_rw_utils.sgml, 1.2, 1.3 logging.sgml, 1.4, 1.5 sysfs.sgml, 1.4, 1.5 util.sgml, 1.1, 1.2 volume_id.sgml, 1.2, 1.3

David Zeuthen david at kemper.freedesktop.org
Thu Jun 8 19:19:34 PDT 2006


Update of /cvs/hal/hal/doc/api/tmpl
In directory kemper:/tmp/cvs-serv22208/doc/api/tmpl

Modified Files:
	config.sgml device.sgml device_store.sgml hal-unused.sgml 
	libhal-storage.sgml linux_dvd_rw_utils.sgml logging.sgml 
	sysfs.sgml util.sgml volume_id.sgml 
Log Message:
2006-06-08  David Zeuthen  <davidz at redhat.com>

	Adds code so addons can claim interfaces and handle the methods on
	them in the addon daemon code. The example here is setting the LCD
	backlight on a Macbook Pro. Actual code for setting the backlight
	is based on code from Nicolas Boichat found on the mactel-linux
	mailing list.

	* hald/linux2/addons/addon-macbookpro-backlight.c: New file.

	* tools/hal-system-power-set-power-save: Bugfix so the right
	backend script is invoked.

	* libhal/libhal.h: Add prototype for libhal_device_claim_interface().

	* libhal/libhal.c (libhal_device_claim_interface): New function.

	* hald/linux2/addons/Makefile.am: Add rules for
	hald-addon-macbookpro-backlight. 

	* hald/hald_dbus.c (device_emit_condition): Only allow helpers,
	e.g.  only messages from direct connections.
	(device_claim_interface): New function to handle the
	ClaimInterface() method
	(do_introspect): Include introspection XML for ClaimInterface()
	and the introspection XML returned by ClaimInterface()
	invocations.
	(reply_from_fwd_message): New function
	(hald_dbus_filter_handle_methods): Handle ClaimInterface() and
	forward messages to the claimed interfaces on the appropriate
	objects.
	(local_server_message_handler): Forward signals from helpers onto
	the system message bus and DTRT when a helper disconnects.

	* hald/device_info.c (handle_spawn): New function. One can now do
	a <spawn udi="foo"> to spawn a child device. See the fdi file below
	for usage.
	(start, spawned_device_callouts_add_done, end):  Handle spawning
	device objects in response to <spawn>.

	* fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi: Add rules
	for matching the Macbook Pro in order to spawn a new device object
	with an addon for handing methods on the org.fd.H.D.LaptopPanel
	interface.

	* hal.conf.in: Allow some interfaces to also emit signals.

	* configure.in: Check for libpci so we can use it as an optional
	dependency. 



Index: config.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/config.sgml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- config.sgml	8 Mar 2006 04:14:09 -0000	1.2
+++ config.sgml	9 Jun 2006 02:19:32 -0000	1.3
@@ -66,6 +66,13 @@
 
 
 
+<!-- ##### MACRO HALD_SOCKET_DIR ##### -->
+<para>
+
+</para>
+
+
+
 <!-- ##### MACRO HAL_GROUP ##### -->
 <para>
 
@@ -108,6 +115,13 @@
 
 
 
+<!-- ##### MACRO HAVE_GETGROUPLIST ##### -->
+<para>
+
+</para>
+
+
+
 <!-- ##### MACRO HAVE_GETTEXT ##### -->
 <para>
 

Index: device.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/device.sgml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- device.sgml	12 May 2006 15:17:05 -0000	1.3
+++ device.sgml	9 Jun 2006 02:19:32 -0000	1.4
@@ -17,6 +17,15 @@
 <!-- ##### SECTION Stability_Level ##### -->
 
 
+<!-- ##### STRUCT HalDevice ##### -->
+<para>
+
+</para>
+
+ at parent: 
+ at udi: 
+ at properties: 
+
 <!-- ##### USER_FUNCTION HalDeviceAsyncCallback ##### -->
 <para>
 

Index: device_store.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/device_store.sgml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- device_store.sgml	8 Mar 2006 04:14:09 -0000	1.2
+++ device_store.sgml	9 Jun 2006 02:19:32 -0000	1.3
@@ -17,6 +17,14 @@
 <!-- ##### SECTION Stability_Level ##### -->
 
 
+<!-- ##### STRUCT HalDeviceStore ##### -->
+<para>
+
+</para>
+
+ at parent: 
+ at devices: 
+
 <!-- ##### USER_FUNCTION HalDeviceStoreAsyncCallback ##### -->
 <para>
 

Index: hal-unused.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/hal-unused.sgml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- hal-unused.sgml	8 Mar 2006 04:18:33 -0000	1.2
+++ hal-unused.sgml	9 Jun 2006 02:19:32 -0000	1.3
@@ -1,3 +1,27 @@
+<!-- ##### SECTION ./tmpl/libhal-policy.sgml:Long_Description ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION ./tmpl/libhal-policy.sgml:See_Also ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### SECTION ./tmpl/libhal-policy.sgml:Short_Description ##### -->
+
+
+
+<!-- ##### SECTION ./tmpl/libhal-policy.sgml:Stability_Level ##### -->
+
+
+
+<!-- ##### SECTION ./tmpl/libhal-policy.sgml:Title ##### -->
+libhal-policy
+
+
 <!-- ##### TYPEDEF LibHalPolicyContext ##### -->
 <para>
 

Index: libhal-storage.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/libhal-storage.sgml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- libhal-storage.sgml	12 May 2006 15:17:05 -0000	1.3
+++ libhal-storage.sgml	9 Jun 2006 02:19:32 -0000	1.4
@@ -693,6 +693,15 @@
 @Returns: 
 
 
+<!-- ##### FUNCTION libhal_volume_is_mounted_read_only ##### -->
+<para>
+
+</para>
+
+ at volume: 
+ at Returns: 
+
+
 <!-- ##### FUNCTION libhal_volume_is_partition ##### -->
 <para>
 

Index: linux_dvd_rw_utils.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/linux_dvd_rw_utils.sgml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- linux_dvd_rw_utils.sgml	8 Mar 2006 04:14:09 -0000	1.2
+++ linux_dvd_rw_utils.sgml	9 Jun 2006 02:19:32 -0000	1.3
@@ -17,6 +17,41 @@
 <!-- ##### SECTION Stability_Level ##### -->
 
 
+<!-- ##### MACRO DRIVE_CDROM_CAPS_DVDRW ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO DRIVE_CDROM_CAPS_DVDPLUSR ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO DRIVE_CDROM_CAPS_DVDPLUSRW ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO DRIVE_CDROM_CAPS_DVDPLUSRWDL ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO DRIVE_CDROM_CAPS_DVDPLUSRDL ##### -->
+<para>
+
+</para>
+
+
+
 <!-- ##### FUNCTION get_dvd_r_rw_profile ##### -->
 <para>
 

Index: logging.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/logging.sgml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- logging.sgml	6 Jun 2006 03:17:27 -0000	1.4
+++ logging.sgml	9 Jun 2006 02:19:32 -0000	1.5
@@ -34,6 +34,8 @@
 @format: 
 @arg...:
 @arg...:
+ at arg...:
+ at arg...:
 @arg...: 
 
 

Index: sysfs.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/sysfs.sgml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sysfs.sgml	6 Jun 2006 03:17:27 -0000	1.4
+++ sysfs.sgml	9 Jun 2006 02:19:32 -0000	1.5
@@ -63,6 +63,8 @@
 @format: 
 @arg...:
 @arg...:
+ at arg...:
+ at arg...:
 @arg...: 
 
 

Index: util.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/util.sgml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- util.sgml	25 Feb 2006 21:07:29 -0000	1.1
+++ util.sgml	9 Jun 2006 02:19:32 -0000	1.2
@@ -19,341 +19,171 @@
 <!-- ##### SECTION Stability_Level ##### -->
 
 
-<!-- ##### MACRO HAL_NAME_MAX ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO HAL_PATH_MAX ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO HAL_HELPER_TIMEOUT ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### FUNCTION util_compute_time_remaining ##### -->
-<para>
-
-</para>
-
- at id: 
- at chargeRate: 
- at chargeLevel: 
- at chargeLastFull: 
- at isDischarging: 
- at isCharging: 
- at guessChargeRate: 
- at Returns: 
-
-
-<!-- ##### FUNCTION util_compute_percentage_charge ##### -->
-<para>
-
-</para>
-
- at id: 
- at chargeLevel: 
- at chargeLastFull: 
- at Returns: 
-
-
-<!-- ##### FUNCTION hal_util_remove_trailing_slash ##### -->
-<para>
-
-</para>
-
- at path: 
- at Returns: 
-
-
-<!-- ##### FUNCTION hal_util_get_last_element ##### -->
-<para>
-
-</para>
-
- at s: 
- at Returns: 
-
-
-<!-- ##### FUNCTION hal_util_get_parent_path ##### -->
-<para>
-
-</para>
-
- at path: 
- at Returns: 
-
-
-<!-- ##### FUNCTION hal_util_get_normalized_path ##### -->
-<para>
-
-</para>
-
- at path1: 
- at path2: 
- at Returns: 
-
-
-<!-- ##### FUNCTION hal_util_get_int_from_file ##### -->
-<para>
-
-</para>
-
- at directory: 
- at file: 
- at result: 
- at base: 
- at Returns: 
-
-
-<!-- ##### FUNCTION hal_util_set_int_from_file ##### -->
-<para>
-
-</para>
-
- at d: 
- at key: 
- at directory: 
- at file: 
- at base: 
- at Returns: 
-
-
-<!-- ##### FUNCTION hal_util_get_string_from_file ##### -->
-<para>
-
-</para>
-
- at directory: 
- at file: 
- at Returns: 
-
-
-<!-- ##### FUNCTION hal_util_set_string_from_file ##### -->
+<!-- ##### MACRO SB_BUFFER_SIZE ##### -->
 <para>
 
 </para>
 
- at d: 
- at key: 
- at directory: 
- at file: 
- at Returns: 
 
 
-<!-- ##### FUNCTION hal_util_get_bcd2_from_file ##### -->
+<!-- ##### MACRO SEEK_BUFFER_SIZE ##### -->
 <para>
 
 </para>
 
- at directory: 
- at file: 
- at result: 
- at Returns: 
 
 
-<!-- ##### FUNCTION hal_util_set_bcd2_from_file ##### -->
+<!-- ##### MACRO le16_to_cpu ##### -->
 <para>
 
 </para>
 
- at d: 
- at key: 
- at directory: 
- at file: 
- at Returns: 
+ at x: 
 
 
-<!-- ##### FUNCTION hal_util_compute_udi ##### -->
+<!-- ##### MACRO le32_to_cpu ##### -->
 <para>
 
 </para>
 
- at store: 
- at dst: 
- at dstsize: 
- at format: 
- at Varargs: 
+ at x: 
 
 
-<!-- ##### FUNCTION hal_util_path_ascend ##### -->
+<!-- ##### MACRO le64_to_cpu ##### -->
 <para>
 
 </para>
 
- at path: 
- at Returns: 
+ at x: 
 
 
-<!-- ##### FUNCTION hal_util_grep_discard_existing_data ##### -->
+<!-- ##### MACRO be16_to_cpu ##### -->
 <para>
 
 </para>
 
+ at x: 
 
 
-<!-- ##### FUNCTION hal_util_grep_file ##### -->
+<!-- ##### MACRO be32_to_cpu ##### -->
 <para>
 
 </para>
 
- at directory: 
- at file: 
- at linestart: 
- at reuse_file: 
- at Returns: 
+ at x: 
 
 
-<!-- ##### FUNCTION hal_util_grep_int_elem_from_file ##### -->
+<!-- ##### MACRO cpu_to_le16 ##### -->
 <para>
 
 </para>
 
- at directory: 
- at file: 
- at linestart: 
- at elem: 
- at base: 
- at reuse_file: 
- at Returns: 
+ at x: 
 
 
-<!-- ##### FUNCTION hal_util_grep_string_elem_from_file ##### -->
+<!-- ##### MACRO cpu_to_le32 ##### -->
 <para>
 
 </para>
 
- at directory: 
- at file: 
- at linestart: 
- at elem: 
- at reuse_file: 
- at Returns: 
+ at x: 
 
 
-<!-- ##### FUNCTION hal_util_set_string_elem_from_file ##### -->
+<!-- ##### MACRO cpu_to_be32 ##### -->
 <para>
 
 </para>
 
- at d: 
- at key: 
- at directory: 
- at file: 
- at linestart: 
- at elem: 
- at reuse_file: 
- at Returns: 
+ at x: 
 
 
-<!-- ##### FUNCTION hal_util_set_int_elem_from_file ##### -->
+<!-- ##### FUNCTION volume_id_set_unicode16 ##### -->
 <para>
 
 </para>
 
- at d: 
- at key: 
- at directory: 
- at file: 
- at linestart: 
- at elem: 
- at base: 
- at reuse_file: 
- at Returns: 
+ at str: 
+ at len: 
+ at buf: 
+ at endianess: 
+ at count: 
 
 
-<!-- ##### FUNCTION hal_util_set_bool_elem_from_file ##### -->
+<!-- ##### FUNCTION volume_id_set_usage ##### -->
 <para>
 
 </para>
 
- at d: 
- at key: 
- at directory: 
- at file: 
- at linestart: 
- at elem: 
- at expected: 
- at reuse_file: 
- at Returns: 
+ at id: 
+ at usage_id: 
 
 
-<!-- ##### FUNCTION hal_util_dup_strv_from_g_slist ##### -->
+<!-- ##### FUNCTION volume_id_set_usage_part ##### -->
 <para>
 
 </para>
 
- at strlist: 
- at Returns: 
+ at part: 
+ at usage_id: 
 
 
-<!-- ##### USER_FUNCTION HalCalloutsDone ##### -->
+<!-- ##### FUNCTION volume_id_set_label_raw ##### -->
 <para>
 
 </para>
 
- at d: 
- at userdata1: 
- at userdata2: 
+ at id: 
+ at buf: 
+ at count: 
 
 
-<!-- ##### FUNCTION hal_util_callout_device_add ##### -->
+<!-- ##### FUNCTION volume_id_set_label_string ##### -->
 <para>
 
 </para>
 
- at d: 
- at callback: 
- at userdata1: 
- at userdata2: 
+ at id: 
+ at buf: 
+ at count: 
 
 
-<!-- ##### FUNCTION hal_util_callout_device_remove ##### -->
+<!-- ##### FUNCTION volume_id_set_label_unicode16 ##### -->
 <para>
 
 </para>
 
- at d: 
- at callback: 
- at userdata1: 
- at userdata2: 
+ at id: 
+ at buf: 
+ at endianess: 
+ at count: 
 
 
-<!-- ##### FUNCTION hal_util_callout_device_preprobe ##### -->
+<!-- ##### FUNCTION volume_id_set_uuid ##### -->
 <para>
 
 </para>
 
- at d: 
- at callback: 
- at userdata1: 
- at userdata2: 
+ at id: 
+ at buf: 
+ at format: 
 
 
-<!-- ##### FUNCTION hal_util_strdup_valid_utf8 ##### -->
+<!-- ##### FUNCTION volume_id_get_buffer ##### -->
 <para>
 
 </para>
 
- at str: 
+ at id: 
+ at off: 
+ at len: 
 @Returns: 
 
 
-<!-- ##### FUNCTION hal_util_hexdump ##### -->
+<!-- ##### FUNCTION volume_id_free_buffer ##### -->
 <para>
 
 </para>
 
- at buf: 
- at size: 
+ at id: 
 
 

Index: volume_id.sgml
===================================================================
RCS file: /cvs/hal/hal/doc/api/tmpl/volume_id.sgml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- volume_id.sgml	8 Mar 2006 04:14:09 -0000	1.2
+++ volume_id.sgml	9 Jun 2006 02:19:32 -0000	1.3
@@ -340,6 +340,16 @@
 @Returns: 
 
 
+<!-- ##### FUNCTION volume_id_probe_squashfs ##### -->
+<para>
+
+</para>
+
+ at id: 
+ at off: 
+ at Returns: 
+
+
 <!-- ##### FUNCTION volume_id_probe_linux_swap ##### -->
 <para>
 




More information about the hal-commit mailing list