mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 03:10:39 +01:00
libnm-glib: NMSettingsSystemPermission -> NMSettingsSystemPermissions
This commit is contained in:
parent
2dbaab2221
commit
d56674b147
3 changed files with 8 additions and 7 deletions
|
|
@ -44,6 +44,7 @@ typedef struct {
|
|||
|
||||
char *hostname;
|
||||
gboolean can_modify;
|
||||
NMSettingsSystemPermissions permissions;
|
||||
|
||||
gboolean disposed;
|
||||
} NMRemoteSettingsSystemPrivate;
|
||||
|
|
@ -121,7 +122,7 @@ get_permissions_cb (DBusGProxy *proxy,
|
|||
gpointer user_data)
|
||||
{
|
||||
GetPermissionsInfo *info = user_data;
|
||||
NMSettingsSystemPermission permissions = NM_SETTINGS_SYSTEM_PERMISSION_NONE;
|
||||
NMSettingsSystemPermissions permissions = NM_SETTINGS_SYSTEM_PERMISSION_NONE;
|
||||
GError *error = NULL;
|
||||
|
||||
dbus_g_proxy_end_call (proxy, call, &error,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ typedef enum {
|
|||
NM_SETTINGS_SYSTEM_PERMISSION_WIFI_SHARE_PROTECTED = 0x2,
|
||||
NM_SETTINGS_SYSTEM_PERMISSION_WIFI_SHARE_OPEN = 0x4,
|
||||
NM_SETTINGS_SYSTEM_PERMISSION_HOSTNAME_MODIFY = 0x8
|
||||
} NMSettingsSystemPermission;
|
||||
} NMSettingsSystemPermissions;
|
||||
|
||||
#define NM_TYPE_SETTINGS_SYSTEM_INTERFACE (nm_settings_system_interface_get_type ())
|
||||
#define NM_SETTINGS_SYSTEM_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTINGS_SYSTEM_INTERFACE, NMSettingsSystemInterface))
|
||||
|
|
@ -60,7 +60,7 @@ typedef void (*NMSettingsSystemSaveHostnameFunc) (NMSettingsSystemInterface *set
|
|||
gpointer user_data);
|
||||
|
||||
typedef void (*NMSettingsSystemGetPermissionsFunc) (NMSettingsSystemInterface *settings,
|
||||
NMSettingsSystemPermission permissions,
|
||||
NMSettingsSystemPermissions permissions,
|
||||
GError *error,
|
||||
gpointer user_data);
|
||||
|
||||
|
|
|
|||
|
|
@ -523,7 +523,7 @@ typedef struct {
|
|||
|
||||
char *hostname;
|
||||
|
||||
NMSettingsSystemPermission permissions;
|
||||
NMSettingsSystemPermissions permissions;
|
||||
guint32 permissions_calls;
|
||||
} PolkitCall;
|
||||
|
||||
|
|
@ -781,7 +781,7 @@ pk_authority_changed_cb (GObject *object, gpointer user_data)
|
|||
typedef struct {
|
||||
PolkitCall *pk_call;
|
||||
const char *pk_action;
|
||||
NMSettingsSystemPermission permission;
|
||||
NMSettingsSystemPermissions permission;
|
||||
} PermissionsCall;
|
||||
|
||||
static void
|
||||
|
|
@ -835,7 +835,7 @@ static void
|
|||
start_permission_check (NMSysconfigSettings *self,
|
||||
PolkitCall *pk_call,
|
||||
const char *pk_action,
|
||||
NMSettingsSystemPermission permission)
|
||||
NMSettingsSystemPermissions permission)
|
||||
{
|
||||
NMSysconfigSettingsPrivate *priv = NM_SYSCONFIG_SETTINGS_GET_PRIVATE (self);
|
||||
PermissionsCall *call;
|
||||
|
|
@ -901,7 +901,7 @@ get_permissions (NMSettingsSystemInterface *settings,
|
|||
gpointer user_data)
|
||||
{
|
||||
NMSysconfigSettings *self = NM_SYSCONFIG_SETTINGS (settings);
|
||||
NMSettingsSystemPermission permissions = NM_SETTINGS_SYSTEM_PERMISSION_NONE;
|
||||
NMSettingsSystemPermissions permissions = NM_SETTINGS_SYSTEM_PERMISSION_NONE;
|
||||
|
||||
/* Local caller (ie, NM) gets full permissions by default because it doesn't
|
||||
* need authorization. However, permissions are still subject to plugin's
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue