utils: add nm_utils_modprobe()

https://bugzilla.gnome.org/show_bug.cgi?id=740651
This commit is contained in:
Thomas Haller
2015-01-09 11:25:06 +01:00
committed by Dan Williams
parent 1970f59b6f
commit 4ad6099b01
2 changed files with 39 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ nm_utils_ip6_route_metric_normalize (guint32 metric)
int nm_spawn_process (const char *args);
int nm_utils_modprobe (GError **error, const char *arg1, ...) G_GNUC_NULL_TERMINATED;
/* check if @flags has exactly one flag (@check) set. You should call this
* only with @check being a compile time constant and a power of two. */
#define NM_FLAGS_HAS(flags, check) \