mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 19:20:12 +01:00
core: move NM_DNS_PRIORITY_DEFAULT_{NORMAL,VPN} to libnm-base
We will use these values from NML3Cfg, and it seems wrong that NML3Cfg would include "dns/nm-dns-manager.h" for this. Enums are very "static". They have no logic, and there is less need to separate the code well. Meaning, it doesn't hurt to define this enum in "libnm-base/nm-base.h" which can be included by (almost) anybody.
This commit is contained in:
parent
ef7258eafe
commit
45bcedb77e
2 changed files with 5 additions and 5 deletions
|
|
@ -21,11 +21,6 @@ typedef enum {
|
|||
NM_DNS_IP_CONFIG_TYPE_VPN,
|
||||
} NMDnsIPConfigType;
|
||||
|
||||
enum {
|
||||
NM_DNS_PRIORITY_DEFAULT_NORMAL = 100,
|
||||
NM_DNS_PRIORITY_DEFAULT_VPN = 50,
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
struct _NMDnsConfigData;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@
|
|||
|
||||
#define _NM_MAX_CLIENT_ID_LEN (sizeof(guint32) + 128)
|
||||
|
||||
enum {
|
||||
NM_DNS_PRIORITY_DEFAULT_NORMAL = 100,
|
||||
NM_DNS_PRIORITY_DEFAULT_VPN = 50,
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
typedef enum {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue