diff options
| author | Stefan Metzmacher <metze@samba.org> | 2021-10-12 14:30:09 +0200 |
|---|---|---|
| committer | Stefan Metzmacher <metze@samba.org> | 2021-11-30 15:53:34 +0000 |
| commit | 62d05a81087029d93ba0cf81c11e5b244d788aef (patch) | |
| tree | aab2dd897bff71f7887d7604a1f12198e69778d1 /nsswitch/libwbclient/wbclient.c | |
| parent | fa98a44cb4d94c6a290deb931b260e411364314d (diff) | |
| download | samba-62d05a81087029d93ba0cf81c11e5b244d788aef.tar.gz samba-62d05a81087029d93ba0cf81c11e5b244d788aef.tar.bz2 samba-62d05a81087029d93ba0cf81c11e5b244d788aef.zip | |
nsswitch/libwbclient: explicitly mark all wbc* symbols as _PUBLIC_
Some private functions from wbclient_internal.h already
leaked into the ABI. With hide_symbols=True we make sure
this doesn't happen again.
Having wbcRequestResponse[Priv]() as part of the ABI helps us
in order to hide winbindd_[priv_]request_response() soon.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'nsswitch/libwbclient/wbclient.c')
| -rw-r--r-- | nsswitch/libwbclient/wbclient.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbclient.c b/nsswitch/libwbclient/wbclient.c index 5444e823ddf..4562046a9fe 100644 --- a/nsswitch/libwbclient/wbclient.c +++ b/nsswitch/libwbclient/wbclient.c @@ -108,6 +108,7 @@ static wbcErr wbcRequestResponseInt( * * @return #wbcErr */ +_PUBLIC_ /* this is internal to wbclient_internal.h, but part of the ABI */ wbcErr wbcRequestResponse(struct wbcContext *ctx, int cmd, struct winbindd_request *request, struct winbindd_response *response) @@ -122,6 +123,7 @@ wbcErr wbcRequestResponse(struct wbcContext *ctx, int cmd, winbindd_request_response); } +_PUBLIC_ /* this is internal to wbclient_internal.h, but part of the ABI */ wbcErr wbcRequestResponsePriv(struct wbcContext *ctx, int cmd, struct winbindd_request *request, struct winbindd_response *response) @@ -142,6 +144,7 @@ wbcErr wbcRequestResponsePriv(struct wbcContext *ctx, int cmd, * * @return a pointer to a static string **/ +_PUBLIC_ const char *wbcErrorString(wbcErr error) { switch (error) { @@ -197,6 +200,7 @@ static struct wbcMemPrefix *wbcMemToPrefix(void *ptr) return (struct wbcMemPrefix *)(((char *)ptr) - wbcPrefixLen()); } +_PUBLIC_ /* this is internal to wbclient_internal.h, but part of the ABI */ void *wbcAllocateMemory(size_t nelem, size_t elsize, void (*destructor)(void *ptr)) { @@ -218,6 +222,7 @@ void *wbcAllocateMemory(size_t nelem, size_t elsize, } /* Free library allocated memory */ +_PUBLIC_ void wbcFreeMemory(void *p) { struct wbcMemPrefix *wbcMem; @@ -240,6 +245,7 @@ void wbcFreeMemory(void *p) return; } +_PUBLIC_ /* this is internal to wbclient_internal.h, but part of the ABI */ char *wbcStrDup(const char *str) { char *result; @@ -263,6 +269,7 @@ static void wbcStringArrayDestructor(void *ptr) } } +_PUBLIC_ /* this is internal to wbclient_internal.h, but part of the ABI */ const char **wbcAllocateStringArray(int num_strings) { return (const char **)wbcAllocateMemory( @@ -270,6 +277,7 @@ const char **wbcAllocateStringArray(int num_strings) wbcStringArrayDestructor); } +_PUBLIC_ wbcErr wbcLibraryDetails(struct wbcLibraryDetails **_details) { struct wbcLibraryDetails *info; @@ -298,6 +306,7 @@ static void wbcContextDestructor(void *ptr) winbindd_ctx_free(ctx->winbindd_ctx); } +_PUBLIC_ struct wbcContext *wbcCtxCreate(void) { struct wbcContext *ctx; @@ -322,11 +331,13 @@ struct wbcContext *wbcCtxCreate(void) return ctx; } +_PUBLIC_ void wbcCtxFree(struct wbcContext *ctx) { wbcFreeMemory(ctx); } +_PUBLIC_ /* this is internal to wbclient_internal.h, but part of the ABI */ struct wbcContext *wbcGetGlobalCtx(void) { return &wbcGlobalCtx; |
