Add printf format checking attribute
[connman] / include / property.h
index e792487..a6ea83c 100644 (file)
@@ -32,6 +32,11 @@ extern "C" {
  * @short_description: Functions for handling properties
  */
 
+#define CONNMAN_PROPERTY_ID_NAME       "Name"
+#define CONNMAN_PROPERTY_ID_TYPE       "Type"
+#define CONNMAN_PROPERTY_ID_PRIORITY   "Priority"
+#define CONNMAN_PROPERTY_ID_STRENGTH   "Strength"
+
 enum connman_property_id {
        CONNMAN_PROPERTY_ID_INVALID = 0,
 
@@ -43,24 +48,19 @@ 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),
+enum connman_property_type {
+       CONNMAN_PROPERTY_TYPE_INVALID = 0,
+       CONNMAN_PROPERTY_TYPE_STRING,
+       CONNMAN_PROPERTY_TYPE_UINT8,
+       CONNMAN_PROPERTY_TYPE_BLOB,
 };
 
 struct connman_property {
-       enum connman_property_flags flags;
        enum connman_property_id id;
-       char *name;
        int type;
        int subtype;
        void *value;
-       int size;
+       unsigned int size;
 };
 
 #ifdef __cplusplus