mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 14:40:33 +01:00
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:
parent
670ca44721
commit
d43be83aaa
2 changed files with 8 additions and 0 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue