summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-09-20 10:27:56 +0200
committerMichael Adam <obnox@samba.org>2010-09-21 06:53:31 +0200
commit3c85a9fcbe56aadc6a50706d253d7d010cf91c63 (patch)
treedc32101519f13ee7625123b3217c9ce4a74e6e24
parente28bc8d763978762480367d031a4a62ebd411f8a (diff)
downloadsamba-3c85a9fcbe56aadc6a50706d253d7d010cf91c63.tar.gz
samba-3c85a9fcbe56aadc6a50706d253d7d010cf91c63.tar.bz2
samba-3c85a9fcbe56aadc6a50706d253d7d010cf91c63.zip
s3:services_db: publish svcctl_get_string_value()
-rw-r--r--source3/include/proto.h3
-rw-r--r--source3/services/services_db.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index b076e230f7..a77c90f308 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4399,6 +4399,9 @@ void svcctl_init_keys( void );
struct security_descriptor *svcctl_get_secdesc( TALLOC_CTX *ctx, const char *name, struct security_token *token );
bool svcctl_set_secdesc(const char *name, struct security_descriptor *sec_desc,
struct security_token *token);
+const char *svcctl_get_string_value(TALLOC_CTX *ctx, const char *key_name,
+ const char *value_name,
+ struct security_token *token);
const char *svcctl_lookup_dispname(TALLOC_CTX *ctx, const char *name, struct security_token *token );
const char *svcctl_lookup_description(TALLOC_CTX *ctx, const char *name, struct security_token *token );
struct regval_ctr *svcctl_fetch_regvalues( const char *name, struct security_token *token );
diff --git a/source3/services/services_db.c b/source3/services/services_db.c
index c296075c1f..bd34ad113c 100644
--- a/source3/services/services_db.c
+++ b/source3/services/services_db.c
@@ -617,9 +617,9 @@ done:
return ret;
}
-static const char *svcctl_get_string_value(TALLOC_CTX *ctx, const char *key_name,
- const char *value_name,
- struct security_token *token)
+const char *svcctl_get_string_value(TALLOC_CTX *ctx, const char *key_name,
+ const char *value_name,
+ struct security_token *token)
{
const char *result = NULL;
struct registry_key *key = NULL;