summaryrefslogtreecommitdiffstats
path: root/source/lsarpcd/lsarpcd.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-01-16 04:01:59 +0000
committerLuke Leighton <lkcl@samba.org>2000-01-16 04:01:59 +0000
commit66b5e490dea571e0d3d635ce5cb342078c3a1f61 (patch)
treebd1cf0019b27bbc50113a88a8ea8cfb7c2227511 /source/lsarpcd/lsarpcd.c
parent315f30e03fb784c2ae8fb57a30a0f9c420ca9968 (diff)
downloadsamba-66b5e490dea571e0d3d635ce5cb342078c3a1f61.tar.gz
samba-66b5e490dea571e0d3d635ce5cb342078c3a1f61.tar.xz
samba-66b5e490dea571e0d3d635ce5cb342078c3a1f61.zip
higher order function table to set up msrpc services.
Diffstat (limited to 'source/lsarpcd/lsarpcd.c')
-rw-r--r--source/lsarpcd/lsarpcd.c25
1 files changed, 19 insertions, 6 deletions
diff --git a/source/lsarpcd/lsarpcd.c b/source/lsarpcd/lsarpcd.c
index 500aba5d1b2..baffbc7dcb1 100644
--- a/source/lsarpcd/lsarpcd.c
+++ b/source/lsarpcd/lsarpcd.c
@@ -31,11 +31,11 @@ extern int DEBUGLEVEL;
/*****************************************************************************
initialise srv_auth_fns array
*****************************************************************************/
-void msrpc_auth_init(rpcsrv_struct *l)
+static void auth_init(rpcsrv_struct *l)
{
}
-void msrpc_service_init(char* service_name)
+static void service_init(char* service_name)
{
add_msrpc_command_processor( pipe_name, service_name, api_ntlsa_rpc );
@@ -48,7 +48,7 @@ void msrpc_service_init(char* service_name)
/****************************************************************************
reload the services file
**************************************************************************/
-BOOL reload_services(BOOL test)
+static BOOL reload_msrpc(BOOL test)
{
BOOL ret;
@@ -72,7 +72,7 @@ BOOL reload_services(BOOL test)
/* perhaps the config filename is now set */
if (!test)
- reload_services(True);
+ reload_msrpc(True);
reopen_logs();
@@ -84,7 +84,7 @@ BOOL reload_services(BOOL test)
/****************************************************************************
main program
****************************************************************************/
- int main(int argc,char *argv[])
+static int main_init(int argc,char *argv[])
{
#ifdef HAVE_SET_AUTH_PARAMETERS
set_auth_parameters(argc,argv);
@@ -103,5 +103,18 @@ BOOL reload_services(BOOL test)
setup_logging(argv[0],False);
slprintf(debugf, sizeof(debugf), "%s/log.%s", LOGFILEBASE, pipe_name);
- return msrpc_main(argc, argv);
+ return 0;
+}
+
+static msrpc_service_fns fn_table =
+{
+ auth_init,
+ service_init,
+ reload_msrpc,
+ main_init
+};
+
+msrpc_service_fns *get_service_fns(void)
+{
+ return &fn_table;
}