diff options
author | Günther Deschner <gd@samba.org> | 2008-11-19 14:37:47 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-12-17 23:52:42 +0100 |
commit | 43d0a4813bf919e7fe6ab82f6920015d1a57f7bc (patch) | |
tree | 6175cf48be002e0775a9aef028b952f07c7a58d0 /source3/rpc_server | |
parent | 934b90c17c37e7cab6d088d5c5be50b08cfce1fb (diff) | |
download | samba-43d0a4813bf919e7fe6ab82f6920015d1a57f7bc.tar.gz samba-43d0a4813bf919e7fe6ab82f6920015d1a57f7bc.tar.bz2 samba-43d0a4813bf919e7fe6ab82f6920015d1a57f7bc.zip |
s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_ntsvcs.c | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/source3/rpc_server/srv_ntsvcs.c b/source3/rpc_server/srv_ntsvcs.c deleted file mode 100644 index c37d2dda7e..0000000000 --- a/source3/rpc_server/srv_ntsvcs.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Unix SMB/CIFS implementation. - * RPC Pipe client / server routines - * Copyright (C) Gerald Carter 2005. - * - * 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/>. - */ - -#include "includes.h" -#include "librpc/gen_ndr/srv_ntsvcs.h" - -#undef DBGC_CLASS -#define DBGC_CLASS DBGC_RPC_SRV - -/******************************************************************* - ********************************************************************/ - -static bool proxy_ntsvcs_call(pipes_struct *p, uint8_t opnum) -{ - struct api_struct *fns; - int n_fns; - - ntsvcs_get_pipe_fns(&fns, &n_fns); - - if (opnum >= n_fns) { - return false; - } - - if (fns[opnum].opnum != opnum) { - smb_panic("NTSVCS function table not sorted"); - } - - return fns[opnum].fn(p); -} - -/******************************************************************* - ********************************************************************/ - -static bool api_ntsvcs_get_version(pipes_struct *p) -{ - return proxy_ntsvcs_call(p, NDR_PNP_GETVERSION); -} - -/******************************************************************* - ********************************************************************/ - -static bool api_ntsvcs_get_device_list_size(pipes_struct *p) -{ - return proxy_ntsvcs_call(p, NDR_PNP_GETDEVICELISTSIZE); -} - -/******************************************************************* - ********************************************************************/ - -static bool api_ntsvcs_get_device_list(pipes_struct *p) -{ - return proxy_ntsvcs_call(p, NDR_PNP_GETDEVICELIST); -} - -/******************************************************************* - ********************************************************************/ - -static bool api_ntsvcs_validate_device_instance(pipes_struct *p) -{ - return proxy_ntsvcs_call(p, NDR_PNP_VALIDATEDEVICEINSTANCE); -} - -/******************************************************************* - ********************************************************************/ - -static bool api_ntsvcs_get_device_reg_property(pipes_struct *p) -{ - return proxy_ntsvcs_call(p, NDR_PNP_GETDEVICEREGPROP); -} - -/******************************************************************* - ********************************************************************/ - -static bool api_ntsvcs_get_hw_profile_info(pipes_struct *p) -{ - return proxy_ntsvcs_call(p, NDR_PNP_GETHWPROFINFO); -} - -/******************************************************************* - ********************************************************************/ - -static bool api_ntsvcs_hw_profile_flags(pipes_struct *p) -{ - return proxy_ntsvcs_call(p, NDR_PNP_HWPROFFLAGS); -} - -/******************************************************************* - \PIPE\svcctl commands - ********************************************************************/ - -static struct api_struct api_ntsvcs_cmds[] = -{ - { "NTSVCS_GET_VERSION" , NTSVCS_GET_VERSION , api_ntsvcs_get_version }, - { "NTSVCS_GET_DEVICE_LIST_SIZE" , NTSVCS_GET_DEVICE_LIST_SIZE , api_ntsvcs_get_device_list_size }, - { "NTSVCS_GET_DEVICE_LIST" , NTSVCS_GET_DEVICE_LIST , api_ntsvcs_get_device_list }, - { "NTSVCS_VALIDATE_DEVICE_INSTANCE" , NTSVCS_VALIDATE_DEVICE_INSTANCE , api_ntsvcs_validate_device_instance }, - { "NTSVCS_GET_DEVICE_REG_PROPERTY" , NTSVCS_GET_DEVICE_REG_PROPERTY , api_ntsvcs_get_device_reg_property }, - { "NTSVCS_GET_HW_PROFILE_INFO" , NTSVCS_GET_HW_PROFILE_INFO , api_ntsvcs_get_hw_profile_info }, - { "NTSVCS_HW_PROFILE_FLAGS" , NTSVCS_HW_PROFILE_FLAGS , api_ntsvcs_hw_profile_flags } -}; - - -void ntsvcs2_get_pipe_fns( struct api_struct **fns, int *n_fns ) -{ - *fns = api_ntsvcs_cmds; - *n_fns = sizeof(api_ntsvcs_cmds) / sizeof(struct api_struct); -} - -NTSTATUS rpc_ntsvcs2_init(void) -{ - return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, - "ntsvcs", "ntsvcs", - &ndr_table_ntsvcs.syntax_id, - api_ntsvcs_cmds, - sizeof(api_ntsvcs_cmds) / sizeof(struct api_struct)); -} |