all: move STRLEN() macro to global header nm-utils-internal.h
https://bugzilla.gnome.org/show_bug.cgi?id=741651
This commit is contained in:
@@ -82,6 +82,9 @@
|
|||||||
|
|
||||||
/********************************************************/
|
/********************************************************/
|
||||||
|
|
||||||
|
/* macro to return strlen() of a compile time string. */
|
||||||
|
#define STRLEN(str) ( sizeof ("" str) - 1 )
|
||||||
|
|
||||||
#define NM_IN_SET(x, y, ...) \
|
#define NM_IN_SET(x, y, ...) \
|
||||||
({ \
|
({ \
|
||||||
const typeof(y) _y = (y); \
|
const typeof(y) _y = (y); \
|
||||||
|
@@ -51,9 +51,6 @@ nm_utils_ip6_route_metric_normalize (guint32 metric)
|
|||||||
|
|
||||||
int nm_spawn_process (const char *args);
|
int nm_spawn_process (const char *args);
|
||||||
|
|
||||||
/* macro to return strlen() of a compile time string. */
|
|
||||||
#define STRLEN(str) ( sizeof ("" str) - 1 )
|
|
||||||
|
|
||||||
/* check if @flags has exactly one flag (@check) set. You should call this
|
/* 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. */
|
* only with @check being a compile time constant and a power of two. */
|
||||||
#define NM_FLAGS_HAS(flags, check) \
|
#define NM_FLAGS_HAS(flags, check) \
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
#include "nm-platform.h"
|
#include "nm-platform.h"
|
||||||
#include "NetworkManagerUtils.h"
|
#include "NetworkManagerUtils.h"
|
||||||
#include "gsystem-local-alloc.h"
|
#include "gsystem-local-alloc.h"
|
||||||
|
#include "nm-utils-internal.h"
|
||||||
|
|
||||||
#define CLIENTID_TAG "send dhcp-client-identifier"
|
#define CLIENTID_TAG "send dhcp-client-identifier"
|
||||||
|
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
#include "nm-utils.h"
|
#include "nm-utils.h"
|
||||||
#include "nm-ip4-config.h"
|
#include "nm-ip4-config.h"
|
||||||
#include "nm-platform.h"
|
#include "nm-platform.h"
|
||||||
|
#include "nm-utils-internal.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
#define DEBUG 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user