diff options
-rwxr-xr-x | tests/unittest/utc-user-awareness-common.h | 10 | ||||
-rwxr-xr-x | tests/unittest/utc-user-awareness.c | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/tests/unittest/utc-user-awareness-common.h b/tests/unittest/utc-user-awareness-common.h index 5e2e62d..2234800 100755 --- a/tests/unittest/utc-user-awareness-common.h +++ b/tests/unittest/utc-user-awareness-common.h @@ -29,11 +29,11 @@ #define CASE_TO_STR(x) case x: return #x; -GMainLoop *g_pMainLoop; -guint g_nTimeoutId; -int g_nCallbackRet; -bool g_bInitialized; -bool g_bFeatureUA; +extern GMainLoop *g_pMainLoop; +extern guint g_nTimeoutId; +extern int g_nCallbackRet; +extern bool g_bInitialized; +extern bool g_bFeatureUA; #define RUN_GMAIN_LOOP {\ g_pMainLoop = g_main_loop_new(NULL, false);\ diff --git a/tests/unittest/utc-user-awareness.c b/tests/unittest/utc-user-awareness.c index 9e653ee..4312420 100755 --- a/tests/unittest/utc-user-awareness.c +++ b/tests/unittest/utc-user-awareness.c @@ -23,6 +23,12 @@ #include "utc-user-awareness-common.h" #include "assert_local.h" +GMainLoop *g_pMainLoop; +guint g_nTimeoutId; +int g_nCallbackRet; +bool g_bInitialized; +bool g_bFeatureUA; + static bool __ua_foreach_service_cb( ua_service_h service_handle, void *user_data) { |