From 2908e9d91aef3832151feb7294babcb7110e93d6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 31 Dec 2008 19:44:33 +0100 Subject: [PATCH] Add element type for PPP --- include/element.h | 11 ++++++----- src/element.c | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/element.h b/include/element.h index 812ac30..92f642f 100644 --- a/include/element.h +++ b/include/element.h @@ -58,11 +58,12 @@ enum connman_element_type { CONNMAN_ELEMENT_TYPE_DEVICE = 3, CONNMAN_ELEMENT_TYPE_NETWORK = 4, 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_PPP = 6, + CONNMAN_ELEMENT_TYPE_IPV4 = 7, + CONNMAN_ELEMENT_TYPE_IPV6 = 8, + CONNMAN_ELEMENT_TYPE_DHCP = 9, + CONNMAN_ELEMENT_TYPE_BOOTP = 10, + CONNMAN_ELEMENT_TYPE_ZEROCONF = 11, CONNMAN_ELEMENT_TYPE_CONNECTION = 42, }; diff --git a/src/element.c b/src/element.c index 0271107..a3bfa02 100644 --- a/src/element.c +++ b/src/element.c @@ -106,6 +106,8 @@ static const char *type2string(enum connman_element_type type) return "network"; case CONNMAN_ELEMENT_TYPE_SERVICE: return "service"; + case CONNMAN_ELEMENT_TYPE_PPP: + return "ppp"; case CONNMAN_ELEMENT_TYPE_IPV4: return "ipv4"; case CONNMAN_ELEMENT_TYPE_IPV6: -- 2.7.4