[SCM] Samba Shared Repository - branch v3-2-test updated -
initial-v3-2-unstable-942-gdd6e09a
Michael Adam
obnox at samba.org
Sat Dec 29 01:28:30 GMT 2007
The branch, v3-2-test has been updated
via dd6e09a65e67a9a16b35b078ebfb41da09926029 (commit)
via e9694ae20e1da1d8c1cbb252e630815b561647dd (commit)
from 80e73407ea326cc68cd8728845c7a1c0907e2201 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit dd6e09a65e67a9a16b35b078ebfb41da09926029
Author: Michael Adam <obnox at samba.org>
Date: Sat Dec 29 02:27:20 2007 +0100
Make the main net_conf functions static in net_conf.c
Michael
commit e9694ae20e1da1d8c1cbb252e630815b561647dd
Author: Michael Adam <obnox at samba.org>
Date: Sat Dec 29 02:26:33 2007 +0100
Add a couple of comment headers to the main libnet_conf functions.
Michael
-----------------------------------------------------------------------
Summary of changes:
source/libnet/libnet_conf.c | 9 +++++++++
source/utils/net_conf.c | 14 +++++++-------
2 files changed, 16 insertions(+), 7 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/libnet/libnet_conf.c b/source/libnet/libnet_conf.c
index 6603de0..a8a8e01 100644
--- a/source/libnet/libnet_conf.c
+++ b/source/libnet/libnet_conf.c
@@ -340,6 +340,9 @@ done:
return werr;
}
+/**
+ * set a configuration parameter to the value provided.
+ */
WERROR libnet_smbconf_setparm(const char *service,
const char *param,
const char *valstr)
@@ -366,6 +369,9 @@ done:
return werr;
}
+/**
+ * get the value of a configuration parameter as a string
+ */
WERROR libnet_smbconf_getparm(TALLOC_CTX *mem_ctx,
const char *service,
const char *param,
@@ -413,6 +419,9 @@ done:
return werr;
}
+/**
+ * delete a parameter from configuration
+ */
WERROR libnet_smbconf_delparm(const char *service,
const char *param)
{
diff --git a/source/utils/net_conf.c b/source/utils/net_conf.c
index e607d09..8140941 100644
--- a/source/utils/net_conf.c
+++ b/source/utils/net_conf.c
@@ -296,7 +296,7 @@ static bool globals_exist(void)
* the conf functions
*/
-int net_conf_list(int argc, const char **argv)
+static int net_conf_list(int argc, const char **argv)
{
WERROR werr = WERR_OK;
int ret = -1;
@@ -369,7 +369,7 @@ done:
return ret;
}
-int net_conf_import(int argc, const char **argv)
+static int net_conf_import(int argc, const char **argv)
{
int ret = -1;
const char *filename = NULL;
@@ -455,7 +455,7 @@ done:
return ret;
}
-int net_conf_listshares(int argc, const char **argv)
+static int net_conf_listshares(int argc, const char **argv)
{
WERROR werr = WERR_OK;
int ret = -1;
@@ -497,7 +497,7 @@ done:
return ret;
}
-int net_conf_drop(int argc, const char **argv)
+static int net_conf_drop(int argc, const char **argv)
{
int ret = -1;
WERROR werr;
@@ -520,7 +520,7 @@ done:
return ret;
}
-int net_conf_showshare(int argc, const char **argv)
+static int net_conf_showshare(int argc, const char **argv)
{
int ret = -1;
WERROR werr = WERR_OK;
@@ -552,7 +552,7 @@ done:
return ret;
}
-int net_conf_addshare(int argc, const char **argv)
+static int net_conf_addshare(int argc, const char **argv)
{
int ret = -1;
WERROR werr = WERR_OK;
@@ -707,7 +707,7 @@ done:
return ret;
}
-int net_conf_delshare(int argc, const char **argv)
+static int net_conf_delshare(int argc, const char **argv)
{
int ret = -1;
const char *sharename = NULL;
--
Samba Shared Repository
More information about the samba-cvs
mailing list