00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef PROPERTY_H
00028 #define PROPERTY_H
00029
00030 #include <dbus/dbus.h>
00031
00032 typedef struct _HalProperty HalProperty;
00033
00034 void hal_property_free (HalProperty *prop);
00035
00036 HalProperty *hal_property_new_string (const char *key,
00037 const char *value);
00038 HalProperty *hal_property_new_int (const char *key,
00039 dbus_int32_t value);
00040 HalProperty *hal_property_new_bool (const char *key,
00041 dbus_bool_t value);
00042 HalProperty *hal_property_new_double (const char *key,
00043 double value);
00044
00045 const char *hal_property_get_key (HalProperty *prop);
00046 int hal_property_get_type (HalProperty *prop);
00047 char *hal_property_to_string (HalProperty *prop);
00048
00049 const char *hal_property_get_string (HalProperty *prop);
00050 dbus_int32_t hal_property_get_int (HalProperty *prop);
00051 dbus_bool_t hal_property_get_bool (HalProperty *prop);
00052 double hal_property_get_double (HalProperty *prop);
00053
00054 void hal_property_set_string (HalProperty *prop,
00055 const char *value);
00056 void hal_property_set_int (HalProperty *prop,
00057 dbus_int32_t value);
00058 void hal_property_set_bool (HalProperty *prop,
00059 dbus_bool_t value);
00060 void hal_property_set_double (HalProperty *prop,
00061 double value);
00062
00063 #endif