summaryrefslogtreecommitdiff
path: root/source3/utils/net_conf_util.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-24 06:38:09 +0200
committerMichael Adam <obnox@samba.org>2013-09-24 07:44:28 +0200
commitf7cf09e661734744163c96c214892558b3d004e5 (patch)
treed1b7abd23f9ab65d546f30317743389fe2a23eac /source3/utils/net_conf_util.h
parent349bcafe09b6ae0ccd2ddc4acef2fd4c48dbc45d (diff)
downloadsamba-f7cf09e661734744163c96c214892558b3d004e5.tar.gz
samba-f7cf09e661734744163c96c214892558b3d004e5.tar.bz2
samba-f7cf09e661734744163c96c214892558b3d004e5.zip
s3:net rpc conf: factor validation of parameter out for re-use.
This goes into a new module net_conf_util to be shared between net conf and net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/utils/net_conf_util.h')
-rw-r--r--source3/utils/net_conf_util.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/source3/utils/net_conf_util.h b/source3/utils/net_conf_util.h
new file mode 100644
index 0000000000..798b399021
--- /dev/null
+++ b/source3/utils/net_conf_util.h
@@ -0,0 +1,33 @@
+/*
+ * Samba Unix/Linux SMB client library
+ * Distributed SMB/CIFS Server Management Utility
+ * Configuration interface
+ *
+ * Copyright (C) Michael Adam 2013
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __NET_CONF_UTIL_H__
+#define __NET_CONF_UTIL_H__
+
+/*
+ * Utility functions for net conf and net rpc conf.
+ */
+
+bool net_conf_param_valid(const char *service,
+ const char *param,
+ const char *valstr);
+
+#endif /* __NET_CONF_UTIL_H__ */