libnm: enforce that "nm-utils-private.h" header is not used inside src/

Let "nm-utils-private.h" and "nm-types.h" conflict.
This commit is contained in:
Thomas Haller 2015-05-20 12:23:03 +02:00
parent 670ca44721
commit d43be83aaa
2 changed files with 8 additions and 0 deletions

View file

@ -21,6 +21,10 @@
#ifndef __NM_UTILS_PRIVATE_H__
#define __NM_UTILS_PRIVATE_H__
#ifdef __NETWORKMANAGER_TYPES_H__
#error "nm-utils-private.h" must not be used outside of libnm-core/. Do you want "nm-core-internal.h"?
#endif
#include "nm-setting-private.h"
#include "nm-setting-ip-config.h"

View file

@ -21,6 +21,10 @@
#ifndef __NETWORKMANAGER_TYPES_H__
#define __NETWORKMANAGER_TYPES_H__
#ifdef __NM_UTILS_PRIVATE_H__
#error "nm-utils-private.h" must not be used outside of libnm-core/. Do you want "nm-core-internal.h"?
#endif
/* core */
typedef struct _NMActiveConnection NMActiveConnection;
typedef struct _NMVpnConnection NMVpnConnection;