mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 01:40:16 +01:00
shared: add nm_keyfile_error_is_not_found() helper
This commit is contained in:
parent
e31b31e5e5
commit
df27164d5e
1 changed files with 12 additions and 0 deletions
|
|
@ -10,9 +10,21 @@
|
|||
#error Cannot use this header.
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#include "nm-glib-aux/nm-shared-utils.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define NM_KEYFILE_GROUP_VPN_SECRETS "vpn-secrets"
|
||||
#define NM_KEYFILE_GROUPPREFIX_WIREGUARD_PEER "wireguard-peer."
|
||||
|
||||
#define nm_keyfile_error_is_not_found(error) \
|
||||
nm_g_error_matches (error, \
|
||||
G_KEY_FILE_ERROR, \
|
||||
G_KEY_FILE_ERROR_GROUP_NOT_FOUND, \
|
||||
G_KEY_FILE_ERROR_KEY_NOT_FOUND)
|
||||
|
||||
const char *nm_keyfile_plugin_get_alias_for_setting_name (const char *setting_name);
|
||||
|
||||
const char *nm_keyfile_plugin_get_setting_name_for_alias (const char *alias);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue