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".
This commit is contained in:
Thomas Haller 2015-06-24 15:26:56 +02:00
parent 4010d779a7
commit b6061b3cd5
2 changed files with 11 additions and 11 deletions

View file

@ -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;

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,