hal/tools hal_get_property.c,1.8,1.9 hal_set_property.c,1.8,1.9
David Zeuthen
david at freedesktop.org
Mon Feb 14 10:20:07 PST 2005
Update of /cvs/hal/hal/tools
In directory gabe:/tmp/cvs-serv18090/tools
Modified Files:
hal_get_property.c hal_set_property.c
Log Message:
2005-02-14 David Zeuthen <davidz at redhat.com>
* configure.in: Require dbus >= 0.30
2005-02-11 John (J5) Palmieri <johnp at redhat.com>
* hald/device.c, hald/device_info.c, hald/property.c, hald/property.h,
tools/hal_set_property.c, tools/hal_get_property.c:
s/HAL_PROPERTY_TYPE_NIL/HAL_PROPERTY_TYPE_INVALID
* hald/hald_dbus.c: ported to new dbus-0.30 API
(foreach_property_append): implemented real string lists
and got rid of the \tval\tval\tval\t hack
* libhal/libhal.c: ported to new dbus-0.30 API
s/HAL_PROPERTY_TYPE_NIL/HAL_PROPERTY_TYPE_INVALID
(libhal_get_string_array_from_iter): new helper function to create
string arrays from dbus arrays
(libhal_property_fill_value_from_variant): new helper function
that fills in properties from variants. Used when getting
a hash of properties from hald
* libhal/libhal.h: s/HAL_PROPERTY_TYPE_NIL/HAL_PROPERTY_TYPE_INVALID
HAL_PROPERTY_TYPE_INVALID = DBUS_TYPE_INVALID
* hald/hald_test_libhal.c: ported to new dbus-0.30 API
Added success messages and more detailed failed messages
* hald/util.c (hal_util_compute_udi): Change all illegal characters
to underscores '_'
* tools/device-manager/DeviceManager.py
(DeviceManager::__init__, add_device_signal_recv):
change add_signal_receiver calls to add expand_args=False parameter.
(DeviceManager::device_changed, gdl_changed): changed handlers
to conform with the new way we call signal handlers
Index: hal_get_property.c
===================================================================
RCS file: /cvs/hal/hal/tools/hal_get_property.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- hal_get_property.c 31 Jan 2005 20:06:41 -0000 1.8
+++ hal_get_property.c 14 Feb 2005 18:20:05 -0000 1.9
@@ -167,7 +167,7 @@
}
type = libhal_device_get_property_type (hal_ctx, udi, key, &error);
- if (type == DBUS_TYPE_NIL) {
+ if (type == DBUS_TYPE_INVALID) {
fprintf (stderr, "error: libhal_device_get_property_type: %s: %s\n", error.name, error.message);
return 1;
}
Index: hal_set_property.c
===================================================================
RCS file: /cvs/hal/hal/tools/hal_set_property.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- hal_set_property.c 31 Jan 2005 20:06:41 -0000 1.8
+++ hal_set_property.c 14 Feb 2005 18:20:05 -0000 1.9
@@ -100,7 +100,7 @@
dbus_bool_t bool_value = TRUE;
dbus_bool_t remove = FALSE;
dbus_bool_t is_version = FALSE;
- int type = DBUS_TYPE_NIL;
+ int type = DBUS_TYPE_INVALID;
DBusError error;
if (argc <= 1) {
@@ -184,7 +184,7 @@
}
/* must have at least one, but not neither or both */
- if ((remove && type != DBUS_TYPE_NIL) || ((!remove) && type == DBUS_TYPE_NIL)) {
+ if ((remove && type != DBUS_TYPE_INVALID) || ((!remove) && type == DBUS_TYPE_INVALID)) {
usage (argc, argv);
return 1;
}
More information about the hal-commit
mailing list