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:
Thomas Haller 2021-09-15 15:30:13 +02:00
parent ef7258eafe
commit 45bcedb77e
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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 {