core: split "nm-core-utils.h" out of "NetworkManagerUtils.h"

"NetworkManagerUtils.h" contains a bunch of helper tools for core
daemon ("src/").

Unfortunately, it has dependencies to other parts of core,
such as "nm-device.h" and "nm-platform.h". Split out a part
of tools that are independent so that they can be used without
dragging in other dependencies.

"nm-core-utils.h" should only use libnm-core, "nm-logging.h"
and shared.

"NetworkManagerUtils.h" should provide all "nm-core-utils.h" and
possibly other utilities that have larger dependencies.
This commit is contained in:
Thomas Haller
2016-03-01 09:56:51 +01:00
parent e4a7502a2c
commit adb56d137e
14 changed files with 3410 additions and 3327 deletions

View File

@@ -19,6 +19,8 @@
*/
#include "nm-default.h"
#include "nm-linux-platform.h"
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
@@ -42,18 +44,15 @@
#include <netlink/route/route.h>
#include <gudev/gudev.h>
#include "nm-core-internal.h"
#include "NetworkManagerUtils.h"
#include "nm-linux-platform.h"
#include "nm-platform-utils.h"
#include "NetworkManagerUtils.h"
#include "nm-utils.h"
#include "nm-core-internal.h"
#include "nm-setting-vlan.h"
#include "nm-core-utils.h"
#include "nmp-object.h"
#include "nm-platform-utils.h"
#include "wifi/wifi-utils.h"
#include "wifi/wifi-utils-wext.h"
#include "nmp-object.h"
/* This is only included for the translation of VLAN flags */
#include "nm-setting-vlan.h"
#define VLAN_FLAG_MVRP 0x8