core: move definition of NMLinkType to nm-types.h

As we use NMLinkType in NetworkManagerUtils.h, we cannot use
the utils header without nm-platform.h. That is clearly wrong.
Apparently NMLinkType has a wider use outside of platform (and
its name is not prefixed with 'platform' either).

Move the enum definition to nm-types.h.

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller
2014-08-28 19:17:07 +02:00
parent c262819360
commit c52e331014
7 changed files with 49 additions and 44 deletions

View File

@@ -24,9 +24,10 @@
#include <glib.h>
#include <stdio.h>
#include <arpa/inet.h>
#include "nm-connection.h"
#include "nm-platform.h"
#include "nm-types.h"
gboolean nm_ethernet_address_is_valid (gconstpointer addr, gssize len);