common: credentials: hide symbols
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 2 Apr 2021 13:07:00 +0000 (09:07 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 2 Apr 2021 19:38:59 +0000 (15:38 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I089502d46bdd0cf34b0721703a08fdd28f61b8f7

src/common/credentials.c
src/common/credentials.h

index 589ffabc26f1ea7ac965ba70f702853fd3cfc2ee..0aeaabaeb3a4249cc7c9e25e54f1906fb97dffd0 100644 (file)
@@ -9,16 +9,19 @@
 #include <stdbool.h>
 #include "credentials.h"
 
+LTTNG_HIDDEN
 uid_t lttng_credentials_get_uid(const struct lttng_credentials *creds)
 {
        return LTTNG_OPTIONAL_GET(creds->uid);
 }
 
+LTTNG_HIDDEN
 gid_t lttng_credentials_get_gid(const struct lttng_credentials *creds)
 {
        return LTTNG_OPTIONAL_GET(creds->gid);
 }
 
+LTTNG_HIDDEN
 bool lttng_credentials_is_equal_uid(const struct lttng_credentials *a,
                const struct lttng_credentials *b)
 {
@@ -38,6 +41,7 @@ bool lttng_credentials_is_equal_uid(const struct lttng_credentials *a,
        return a->uid.value == b->uid.value;
 }
 
+LTTNG_HIDDEN
 bool lttng_credentials_is_equal_gid(const struct lttng_credentials *a,
                const struct lttng_credentials *b)
 {
@@ -57,6 +61,7 @@ bool lttng_credentials_is_equal_gid(const struct lttng_credentials *a,
        return a->gid.value == b->gid.value;
 }
 
+LTTNG_HIDDEN
 bool lttng_credentials_is_equal(const struct lttng_credentials *a,
                const struct lttng_credentials *b)
 {
index c0dc6d7f14dfc6d7035088d3ad7eeb4ee0eaf59f..a13e8d65485c556bfdbb0544bfbde10589e3cfc9 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <sys/types.h>
 #include <stdbool.h>
+#include "macros.h"
 
 #include "optional.h"
 
@@ -18,15 +19,21 @@ struct lttng_credentials {
        LTTNG_OPTIONAL(gid_t) gid;
 };
 
+LTTNG_HIDDEN
 uid_t lttng_credentials_get_uid(const struct lttng_credentials *creds);
+
+LTTNG_HIDDEN
 gid_t lttng_credentials_get_gid(const struct lttng_credentials *creds);
 
+LTTNG_HIDDEN
 bool lttng_credentials_is_equal_uid(const struct lttng_credentials *a,
                const struct lttng_credentials *b);
 
+LTTNG_HIDDEN
 bool lttng_credentials_is_equal_gid(const struct lttng_credentials *a,
                const struct lttng_credentials *b);
 
+LTTNG_HIDDEN
 bool lttng_credentials_is_equal(const struct lttng_credentials *a,
                const struct lttng_credentials *b);
 
This page took 0.0268 seconds and 4 git commands to generate.