diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-21 18:22:08 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-21 18:22:08 +0100 |
commit | d7480e83fdcc558705237c888cdc6fab8620d846 (patch) | |
tree | 147e07b8093051c33d7827373c4b4b79c23bd2ad /include | |
parent | 03cbc012afd80dbdd75f1293ab2ada6b25044944 (diff) | |
download | connman-d7480e83fdcc558705237c888cdc6fab8620d846.tar.gz connman-d7480e83fdcc558705237c888cdc6fab8620d846.tar.bz2 connman-d7480e83fdcc558705237c888cdc6fab8620d846.zip |
More simplification of property functions
Diffstat (limited to 'include')
-rw-r--r-- | include/element.h | 4 | ||||
-rw-r--r-- | include/property.h | 12 |
2 files changed, 1 insertions, 15 deletions
diff --git a/include/element.h b/include/element.h index 3549f078..5bd987b3 100644 --- a/include/element.h +++ b/include/element.h @@ -96,11 +96,9 @@ extern struct connman_element *connman_element_create(const char *name); extern struct connman_element *connman_element_ref(struct connman_element *element); extern void connman_element_unref(struct connman_element *element); -extern int connman_element_add_static_property(struct connman_element *element, - const char *name, int type, const void *value); extern int connman_element_set_static_property(struct connman_element *element, const char *name, int type, const void *value); -extern int connman_element_add_static_array_property(struct connman_element *element, +extern int connman_element_set_static_array_property(struct connman_element *element, const char *name, int type, const void *value, int len); extern int connman_element_set_property(struct connman_element *element, enum connman_property_id id, const void *value); diff --git a/include/property.h b/include/property.h index e792487f..ec8254cb 100644 --- a/include/property.h +++ b/include/property.h @@ -43,20 +43,8 @@ enum connman_property_id { CONNMAN_PROPERTY_ID_IPV4_NAMESERVER, }; -/** - * connman_property_flags: - * @CONNMAN_PROPERTY_FLAG_STATIC: read-only property - * @CONNMAN_PROPERTY_FLAG_REFERENCE: inheritated value (reference only) - */ -enum connman_property_flags { - CONNMAN_PROPERTY_FLAG_STATIC = (1 << 0), - CONNMAN_PROPERTY_FLAG_REFERENCE = (1 << 1), -}; - struct connman_property { - enum connman_property_flags flags; enum connman_property_id id; - char *name; int type; int subtype; void *value; |