summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data_blob.c6
-rw-r--r--data_blob.h10
2 files changed, 6 insertions, 10 deletions
diff --git a/data_blob.c b/data_blob.c
index a884f13..07e54e2 100644
--- a/data_blob.c
+++ b/data_blob.c
@@ -37,7 +37,7 @@ const DATA_BLOB data_blob_null = { NULL, 0 };
construct a data blob, must be freed with data_blob_free()
you can pass NULL for p and get a blank data blob
**/
-_PUBLIC_ DATA_BLOB data_blob_named(const void *p, size_t length, const char *name)
+DATA_BLOB data_blob_named(const void *p, size_t length, const char *name)
{
DATA_BLOB ret;
@@ -63,7 +63,7 @@ _PUBLIC_ DATA_BLOB data_blob_named(const void *p, size_t length, const char *nam
/**
construct a data blob, using supplied TALLOC_CTX
**/
-_PUBLIC_ DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, size_t length, const char *name)
+DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, size_t length, const char *name)
{
DATA_BLOB ret = data_blob_named(p, length, name);
@@ -76,7 +76,7 @@ _PUBLIC_ DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, si
/**
free a data blob
**/
-_PUBLIC_ void data_blob_free(DATA_BLOB *d)
+void data_blob_free(DATA_BLOB *d)
{
if (d) {
talloc_free(d->data);
diff --git a/data_blob.h b/data_blob.h
index ccdf30d..3d96147 100644
--- a/data_blob.h
+++ b/data_blob.h
@@ -23,10 +23,6 @@
#ifndef _SAMBA_DATABLOB_H_
#define _SAMBA_DATABLOB_H_
-#ifndef _PUBLIC_
-#define _PUBLIC_
-#endif
-
#include <talloc.h>
#include <stdint.h>
@@ -53,17 +49,17 @@ struct data_blob_list_item {
construct a data blob, must be freed with data_blob_free()
you can pass NULL for p and get a blank data blob
**/
-_PUBLIC_ DATA_BLOB data_blob_named(const void *p, size_t length, const char *name);
+DATA_BLOB data_blob_named(const void *p, size_t length, const char *name);
/**
construct a data blob, using supplied TALLOC_CTX
**/
-_PUBLIC_ DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, size_t length, const char *name);
+DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, size_t length, const char *name);
/**
free a data blob
**/
-_PUBLIC_ void data_blob_free(DATA_BLOB *d);
+void data_blob_free(DATA_BLOB *d);
extern const DATA_BLOB data_blob_null;