diff options
author | Jim McDonough <jmcd@samba.org> | 2003-02-14 00:48:28 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2003-02-14 00:48:28 +0000 |
commit | 49d3f7bc81d3ce96513128f3e504ae1228e53d68 (patch) | |
tree | 3dcf850272d78fef0d576a941bb0ac08d1ff5c01 /source3/rpc_server/srv_dfs.c | |
parent | 3807a1dadf1905567d70a7dd2b6344b884cf0ef7 (diff) | |
download | samba-49d3f7bc81d3ce96513128f3e504ae1228e53d68.tar.gz samba-49d3f7bc81d3ce96513128f3e504ae1228e53d68.tar.bz2 samba-49d3f7bc81d3ce96513128f3e504ae1228e53d68.zip |
merge from HEAD - enable dynamic RPC modules
(This used to be commit d9c485b01017594d113502f9de2248d6c120cfa3)
Diffstat (limited to 'source3/rpc_server/srv_dfs.c')
-rw-r--r-- | source3/rpc_server/srv_dfs.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/source3/rpc_server/srv_dfs.c b/source3/rpc_server/srv_dfs.c index 676ad8e3f3..f6e9ca3d56 100644 --- a/source3/rpc_server/srv_dfs.c +++ b/source3/rpc_server/srv_dfs.c @@ -3,8 +3,9 @@ * RPC Pipe client / server routines for Dfs * Copyright (C) Andrew Tridgell 1992-1997, * Copyright (C) Luke Kenneth Casson Leighton 1996-1997, - * Copyright (C) Shirish Kalele 2000. - * Copyright (C) Jeremy Allison 2001. + * Copyright (C) Shirish Kalele 2000, + * Copyright (C) Jeremy Allison 2001, + * Copyright (C) Anthony Liguori 2003. * * 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 @@ -157,21 +158,20 @@ static BOOL api_dfs_enum(pipes_struct *p) \pipe\netdfs commands ********************************************************************/ -struct api_struct api_netdfs_cmds[] = +#ifdef RPC_DFS_DYNAMIC +int rpc_pipe_init(void) +#else +int rpc_dfs_init(void) +#endif { - {"DFS_EXIST", DFS_EXIST, api_dfs_exist }, - {"DFS_ADD", DFS_ADD, api_dfs_add }, - {"DFS_REMOVE", DFS_REMOVE, api_dfs_remove }, - {"DFS_GET_INFO", DFS_GET_INFO, api_dfs_get_info }, - {"DFS_ENUM", DFS_ENUM, api_dfs_enum }, - {NULL, 0, NULL } -}; - -/******************************************************************* -receives a netdfs pipe and responds. -********************************************************************/ - -BOOL api_netdfs_rpc(pipes_struct *p) -{ - return api_rpcTNP(p, "api_netdfs_rpc", api_netdfs_cmds); + struct api_struct api_netdfs_cmds[] = + { + {"DFS_EXIST", DFS_EXIST, api_dfs_exist }, + {"DFS_ADD", DFS_ADD, api_dfs_add }, + {"DFS_REMOVE", DFS_REMOVE, api_dfs_remove }, + {"DFS_GET_INFO", DFS_GET_INFO, api_dfs_get_info }, + {"DFS_ENUM", DFS_ENUM, api_dfs_enum } + }; + return rpc_pipe_register_commands("netdfs", "netdfs", api_netdfs_cmds, + sizeof(api_netdfs_cmds) / sizeof(struct api_struct)); } |