|
Packit Service |
87a54e |
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
Packit |
5756e2 |
/*
|
|
Packit |
5756e2 |
* Copyright (C) 2016 Red Hat, Inc.
|
|
Packit |
5756e2 |
*/
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
#ifndef __NM_COMMON_MACROS_H__
|
|
Packit |
5756e2 |
#define __NM_COMMON_MACROS_H__
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
/*****************************************************************************/
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_ENABLE_DISABLE_NETWORK \
|
|
Packit Service |
a1bd4f |
"org.freedesktop.NetworkManager.enable-disable-network"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_SLEEP_WAKE "org.freedesktop.NetworkManager.sleep-wake"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_ENABLE_DISABLE_WIFI "org.freedesktop.NetworkManager.enable-disable-wifi"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_ENABLE_DISABLE_WWAN "org.freedesktop.NetworkManager.enable-disable-wwan"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_ENABLE_DISABLE_WIMAX \
|
|
Packit Service |
a1bd4f |
"org.freedesktop.NetworkManager.enable-disable-wimax"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_NETWORK_CONTROL "org.freedesktop.NetworkManager.network-control"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_WIFI_SHARE_PROTECTED \
|
|
Packit Service |
a1bd4f |
"org.freedesktop.NetworkManager.wifi.share.protected"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_WIFI_SHARE_OPEN "org.freedesktop.NetworkManager.wifi.share.open"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_SETTINGS_MODIFY_SYSTEM \
|
|
Packit Service |
a1bd4f |
"org.freedesktop.NetworkManager.settings.modify.system"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_SETTINGS_MODIFY_OWN "org.freedesktop.NetworkManager.settings.modify.own"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_SETTINGS_MODIFY_HOSTNAME \
|
|
Packit Service |
a1bd4f |
"org.freedesktop.NetworkManager.settings.modify.hostname"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_SETTINGS_MODIFY_GLOBAL_DNS \
|
|
Packit Service |
a1bd4f |
"org.freedesktop.NetworkManager.settings.modify.global-dns"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_RELOAD "org.freedesktop.NetworkManager.reload"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_CHECKPOINT_ROLLBACK "org.freedesktop.NetworkManager.checkpoint-rollback"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_ENABLE_DISABLE_STATISTICS \
|
|
Packit Service |
a1bd4f |
"org.freedesktop.NetworkManager.enable-disable-statistics"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_ENABLE_DISABLE_CONNECTIVITY_CHECK \
|
|
Packit Service |
a1bd4f |
"org.freedesktop.NetworkManager.enable-disable-connectivity-check"
|
|
Packit Service |
a1bd4f |
#define NM_AUTH_PERMISSION_WIFI_SCAN "org.freedesktop.NetworkManager.wifi.scan"
|
|
Packit Service |
a1bd4f |
|
|
Packit Service |
a1bd4f |
#define NM_CLONED_MAC_PRESERVE "preserve"
|
|
Packit Service |
a1bd4f |
#define NM_CLONED_MAC_PERMANENT "permanent"
|
|
Packit Service |
a1bd4f |
#define NM_CLONED_MAC_RANDOM "random"
|
|
Packit Service |
a1bd4f |
#define NM_CLONED_MAC_STABLE "stable"
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
static inline gboolean
|
|
Packit Service |
a1bd4f |
NM_CLONED_MAC_IS_SPECIAL(const char *str)
|
|
Packit |
5756e2 |
{
|
|
Packit Service |
a1bd4f |
return NM_IN_STRSET(str,
|
|
Packit Service |
a1bd4f |
NM_CLONED_MAC_PRESERVE,
|
|
Packit Service |
a1bd4f |
NM_CLONED_MAC_PERMANENT,
|
|
Packit Service |
a1bd4f |
NM_CLONED_MAC_RANDOM,
|
|
Packit Service |
a1bd4f |
NM_CLONED_MAC_STABLE);
|
|
Packit |
5756e2 |
}
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
#define NM_IAID_MAC "mac"
|
|
Packit Service |
a1bd4f |
#define NM_IAID_PERM_MAC "perm-mac"
|
|
Packit Service |
a1bd4f |
#define NM_IAID_IFNAME "ifname"
|
|
Packit Service |
a1bd4f |
#define NM_IAID_STABLE "stable"
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
#define NM_CONNECTION_MUD_URL_NONE "none"
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
static inline gboolean
|
|
Packit Service |
a1bd4f |
NM_IAID_IS_SPECIAL(const char *str)
|
|
Packit |
5756e2 |
{
|
|
Packit Service |
a1bd4f |
return NM_IN_STRSET(str, NM_IAID_MAC, NM_IAID_PERM_MAC, NM_IAID_IFNAME, NM_IAID_STABLE);
|
|
Packit |
5756e2 |
}
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
#endif /* __NM_COMMON_MACROS_H__ */
|