diff options
author | Michael Adam <obnox@samba.org> | 2007-12-23 02:44:29 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-12-23 04:10:31 +0100 |
commit | ec3e8587ecdef8e4a52d4c37ac379d9e414b861b (patch) | |
tree | db2fe36e06e81d1a7ee210e2464481007ef381b0 /source3/libnet | |
parent | aeea4bfadd98f23df71c5754bef7defc42d2f67f (diff) | |
download | samba-ec3e8587ecdef8e4a52d4c37ac379d9e414b861b.tar.gz samba-ec3e8587ecdef8e4a52d4c37ac379d9e414b861b.tar.bz2 samba-ec3e8587ecdef8e4a52d4c37ac379d9e414b861b.zip |
Move smbconf_value_exists() to libnet/net_conf.c
renaming it to libnet_smbconf_value_exists().
Michael
(This used to be commit ba71c6844588f0342589163f514385911e7331e7)
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_conf.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c index dcaa7689b3..9f64e7fc0d 100644 --- a/source3/libnet/libnet_conf.c +++ b/source3/libnet/libnet_conf.c @@ -194,3 +194,20 @@ WERROR libnet_smbconf_set_global_param(TALLOC_CTX *mem_ctx, return do_modify_val_config(key, param, val); } +bool libnet_smbconf_value_exists(TALLOC_CTX *ctx, + struct registry_key *key, + const char *param) +{ + bool ret = False; + WERROR werr = WERR_OK; + struct registry_value *value = NULL; + + werr = reg_queryvalue(ctx, key, param, &value); + if (W_ERROR_IS_OK(werr)) { + ret = True; + } + + TALLOC_FREE(value); + return ret; +} + |