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".

(cherry picked from commit b6061b3cd5)
This commit is contained in:
Thomas Haller 2015-06-24 15:26:56 +02:00
parent 3845b7706c
commit 28c79aaa33
2 changed files with 11 additions and 11 deletions

View file

@ -116,6 +116,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;

View file

@ -31,17 +31,6 @@
#include <gudev/gudev.h>
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;
typedef enum { /*< skip >*/
NMP_OBJECT_TO_STRING_ID,
NMP_OBJECT_TO_STRING_PUBLIC,