Add type constant for service elements
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Nov 2008 18:52:58 +0000 (19:52 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 26 Nov 2008 18:52:58 +0000 (19:52 +0100)
include/element.h
src/element.c

index 1607f82..0a96397 100644 (file)
@@ -58,12 +58,13 @@ enum connman_element_type {
        CONNMAN_ELEMENT_TYPE_PROFILE    = 2,
        CONNMAN_ELEMENT_TYPE_DEVICE     = 3,
        CONNMAN_ELEMENT_TYPE_NETWORK    = 4,
-       CONNMAN_ELEMENT_TYPE_IPV4       = 5,
-       CONNMAN_ELEMENT_TYPE_IPV6       = 6,
-       CONNMAN_ELEMENT_TYPE_DHCP       = 7,
-       CONNMAN_ELEMENT_TYPE_BOOTP      = 8,
-       CONNMAN_ELEMENT_TYPE_ZEROCONF   = 9,
-       CONNMAN_ELEMENT_TYPE_RESOLVER   = 10,
+       CONNMAN_ELEMENT_TYPE_SERVICE    = 5,
+       CONNMAN_ELEMENT_TYPE_IPV4       = 6,
+       CONNMAN_ELEMENT_TYPE_IPV6       = 7,
+       CONNMAN_ELEMENT_TYPE_DHCP       = 8,
+       CONNMAN_ELEMENT_TYPE_BOOTP      = 9,
+       CONNMAN_ELEMENT_TYPE_ZEROCONF   = 10,
+       CONNMAN_ELEMENT_TYPE_RESOLVER   = 11,
 
        CONNMAN_ELEMENT_TYPE_CONNECTION = 42,
 };
index eb9c07f..6e14a8c 100644 (file)
@@ -103,6 +103,8 @@ static const char *type2string(enum connman_element_type type)
                return "device";
        case CONNMAN_ELEMENT_TYPE_NETWORK:
                return "network";
+       case CONNMAN_ELEMENT_TYPE_SERVICE:
+               return "service";
        case CONNMAN_ELEMENT_TYPE_IPV4:
                return "ipv4";
        case CONNMAN_ELEMENT_TYPE_IPV6: