diff options
author | Günther Deschner <gd@samba.org> | 2008-02-17 23:42:20 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-17 23:45:02 +0100 |
commit | 45c6af356ee071f65ce98a7c88ddcd2393c907b1 (patch) | |
tree | 52007c3a9024655b64a5152102820cad7b41e188 /source3 | |
parent | 948bfd629eec03bac3715c17f9d30b3995a2e2e1 (diff) | |
download | samba-45c6af356ee071f65ce98a7c88ddcd2393c907b1.tar.gz samba-45c6af356ee071f65ce98a7c88ddcd2393c907b1.tar.bz2 samba-45c6af356ee071f65ce98a7c88ddcd2393c907b1.zip |
Use pidl for _PNP_ValidateDeviceInstance().
Guenther
(This used to be commit 7973a103aa91497807cb0e3bf19dba172ae613b8)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_ntsvcs.c | 18 | ||||
-rw-r--r-- | source3/rpc_server/srv_ntsvcs_nt.c | 13 |
2 files changed, 3 insertions, 28 deletions
diff --git a/source3/rpc_server/srv_ntsvcs.c b/source3/rpc_server/srv_ntsvcs.c index ec65919646..cd2248926c 100644 --- a/source3/rpc_server/srv_ntsvcs.c +++ b/source3/rpc_server/srv_ntsvcs.c @@ -104,23 +104,7 @@ static bool api_ntsvcs_get_device_list(pipes_struct *p) static bool api_ntsvcs_validate_device_instance(pipes_struct *p) { - NTSVCS_Q_VALIDATE_DEVICE_INSTANCE q_u; - NTSVCS_R_VALIDATE_DEVICE_INSTANCE r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - if(!ntsvcs_io_q_validate_device_instance("", &q_u, data, 0)) - return False; - - r_u.status = _ntsvcs_validate_device_instance(p, &q_u, &r_u); - - if(!ntsvcs_io_r_validate_device_instance("", &r_u, rdata, 0)) - return False; - - return True; + return proxy_ntsvcs_call(p, NDR_PNP_VALIDATEDEVICEINSTANCE); } /******************************************************************* diff --git a/source3/rpc_server/srv_ntsvcs_nt.c b/source3/rpc_server/srv_ntsvcs_nt.c index 0cf2e5cc19..b6e0126fa6 100644 --- a/source3/rpc_server/srv_ntsvcs_nt.c +++ b/source3/rpc_server/srv_ntsvcs_nt.c @@ -144,7 +144,8 @@ WERROR _ntsvcs_get_device_reg_property( pipes_struct *p, NTSVCS_Q_GET_DEVICE_REG /******************************************************************** ********************************************************************/ -WERROR _ntsvcs_validate_device_instance( pipes_struct *p, NTSVCS_Q_VALIDATE_DEVICE_INSTANCE *q_u, NTSVCS_R_VALIDATE_DEVICE_INSTANCE *r_u ) +WERROR _PNP_ValidateDeviceInstance(pipes_struct *p, + struct PNP_ValidateDeviceInstance *r) { /* whatever dude */ return WERR_OK; @@ -228,16 +229,6 @@ WERROR _PNP_ReportLogOn(pipes_struct *p, /**************************************************************** ****************************************************************/ -WERROR _PNP_ValidateDeviceInstance(pipes_struct *p, - struct PNP_ValidateDeviceInstance *r) -{ - p->rng_fault_state = true; - return WERR_NOT_SUPPORTED; -} - -/**************************************************************** -****************************************************************/ - WERROR _PNP_GetRootDeviceInstance(pipes_struct *p, struct PNP_GetRootDeviceInstance *r) { |