X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=include%2Fproperty.h;h=a6ea83c8ee2004100754b80d5d02e2544dba4446;hb=b374f6d47e4953aa20795ac6b5ba2709dab382cf;hp=14198bef4b288560ae01968017a1a9b71412f524;hpb=074d489a01de3dfb1fa2b8e9ad48bf42fff1302b;p=connman diff --git a/include/property.h b/include/property.h index 14198be..a6ea83c 100644 --- a/include/property.h +++ b/include/property.h @@ -2,7 +2,7 @@ * * Connection Manager * - * Copyright (C) 2007-2008 Intel Corporation. All rights reserved. + * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -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, @@ -39,25 +44,23 @@ enum connman_property_id { CONNMAN_PROPERTY_ID_IPV4_ADDRESS, CONNMAN_PROPERTY_ID_IPV4_NETMASK, CONNMAN_PROPERTY_ID_IPV4_GATEWAY, + CONNMAN_PROPERTY_ID_IPV4_BROADCAST, 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; + unsigned int size; }; #ifdef __cplusplus