diff options
Diffstat (limited to 'src/core/nm-core-utils.h')
| -rw-r--r-- | src/core/nm-core-utils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/nm-core-utils.h b/src/core/nm-core-utils.h index 224018c6..cccccae6 100644 --- a/src/core/nm-core-utils.h +++ b/src/core/nm-core-utils.h @@ -494,6 +494,19 @@ gid_t nm_utils_get_nm_gid(void); /*****************************************************************************/ +gboolean nm_utils_connection_supported(NMConnection *connection, GError **error); + +/*****************************************************************************/ + +typedef struct { + gint64 ts_msec; + gint64 tokens; +} NMRateLimit; + +gboolean nm_rate_limit_check(NMRateLimit *rate_limit, gint32 window_sec, gint32 burst); + +/*****************************************************************************/ + const char *nm_utils_get_connection_first_permissions_user(NMConnection *connection); /*****************************************************************************/ |