From d7480e83fdcc558705237c888cdc6fab8620d846 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 21 Jan 2009 18:22:08 +0100 Subject: More simplification of property functions --- include/element.h | 4 +--- include/property.h | 12 ------------ 2 files changed, 1 insertion(+), 15 deletions(-) (limited to 'include') 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; -- cgit v1.2.3