diff options
author | Thomas Haller <thaller@redhat.com> | 2015-06-24 15:26:56 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-06-24 16:09:57 +0200 |
commit | b6061b3cd5e694d492ae647b9ef1ce62621948bf (patch) | |
tree | a0eb1d03b2145431c8ed23708331ce7e095bcf8d /src/nm-types.h | |
parent | 4010d779a7b0bcc8415ef73aff6b8aaa215abc78 (diff) | |
download | NetworkManager-b6061b3cd5e694d492ae647b9ef1ce62621948bf.tar.gz |
platform: declare NMPObjectType in nm-types.h
We want to use it outside of NMPlatform, but users should not be required
to include "nmp-object.h".
Diffstat (limited to 'src/nm-types.h')
-rw-r--r-- | src/nm-types.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nm-types.h b/src/nm-types.h index 2f36bee45a..bc3bfb0c8c 100644 --- a/src/nm-types.h +++ b/src/nm-types.h @@ -120,6 +120,17 @@ typedef enum { NM_LINK_TYPE_TEAM, } NMLinkType; +typedef enum { + OBJECT_TYPE_UNKNOWN, + NMP_OBJECT_TYPE_LINK, + NMP_OBJECT_TYPE_IP4_ADDRESS, + NMP_OBJECT_TYPE_IP6_ADDRESS, + NMP_OBJECT_TYPE_IP4_ROUTE, + NMP_OBJECT_TYPE_IP6_ROUTE, + __OBJECT_TYPE_LAST, + OBJECT_TYPE_MAX = __OBJECT_TYPE_LAST - 1, +} NMPObjectType; + /* settings */ typedef struct _NMAgentManager NMAgentManager; typedef struct _NMSecretAgent NMSecretAgent; |