summaryrefslogtreecommitdiff
path: root/source4/lib/registry/common/reg_util.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-06 21:36:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:20 -0500
commit86dda205623926e83d28a20d0b4d87ea1ac11824 (patch)
tree457f505ca49837241d87b818fcbd4a4f145e8f28 /source4/lib/registry/common/reg_util.c
parentce3032cab82fd66ddfd4d55d7cc242aff80be161 (diff)
downloadsamba-86dda205623926e83d28a20d0b4d87ea1ac11824.tar.gz
samba-86dda205623926e83d28a20d0b4d87ea1ac11824.tar.bz2
samba-86dda205623926e83d28a20d0b4d87ea1ac11824.zip
r13899: Get the shared library build building again. Just compiles for now,
but modules don't work yet.. (Run LIBRARY_OUTPUT_TYPE=SHARED_LIBRARY MODULE_OUTPUT_TYPE=SHARED_LIBRARY ./config.status) (This used to be commit ba74f24e422eda0379615f2ab39bef1e1e025ce7)
Diffstat (limited to 'source4/lib/registry/common/reg_util.c')
-rw-r--r--source4/lib/registry/common/reg_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/registry/common/reg_util.c b/source4/lib/registry/common/reg_util.c
index a35e55696b..da18102d1f 100644
--- a/source4/lib/registry/common/reg_util.c
+++ b/source4/lib/registry/common/reg_util.c
@@ -40,7 +40,7 @@ static const struct {
};
/** Return string description of registry value type */
-const char *str_regtype(int type)
+_PUBLIC_ const char *str_regtype(int type)
{
int i;
for (i = 0; reg_value_types[i].name; i++) {
@@ -51,7 +51,7 @@ const char *str_regtype(int type)
return "Unknown";
}
-char *reg_val_data_string(TALLOC_CTX *mem_ctx, uint32_t type, DATA_BLOB *data)
+_PUBLIC_ char *reg_val_data_string(TALLOC_CTX *mem_ctx, uint32_t type, DATA_BLOB *data)
{
char *ret = NULL;
@@ -85,12 +85,12 @@ char *reg_val_data_string(TALLOC_CTX *mem_ctx, uint32_t type, DATA_BLOB *data)
}
/** Generate a string that describes a registry value */
-char *reg_val_description(TALLOC_CTX *mem_ctx, struct registry_value *val)
+_PUBLIC_ char *reg_val_description(TALLOC_CTX *mem_ctx, struct registry_value *val)
{
return talloc_asprintf(mem_ctx, "%s = %s : %s", val->name?val->name:"<No Name>", str_regtype(val->data_type), reg_val_data_string(mem_ctx, val->data_type, &val->data));
}
-BOOL reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const char *data_str, uint32_t *type, DATA_BLOB *data)
+_PUBLIC_ BOOL reg_string_to_val(TALLOC_CTX *mem_ctx, const char *type_str, const char *data_str, uint32_t *type, DATA_BLOB *data)
{
int i;
*type = -1;