s4:rpc_server: add dcesrv_browser template
[nivanova/samba-autobuild/.git] / source4 / rpc_server / browser / dcesrv_browser.c
1 /*
2    Unix SMB/CIFS implementation.
3
4    endpoint server for the browser pipe
5
6    Copyright (C) Stefan Metzmacher 2008
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #include "includes.h"
23 #include "rpc_server/dcerpc_server.h"
24 #include "librpc/gen_ndr/ndr_browser.h"
25 #include "rpc_server/common/common.h"
26
27
28 /*
29   BrowserrServerEnum
30 */
31 static void dcesrv_BrowserrServerEnum(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
32                        struct BrowserrServerEnum *r)
33 {
34         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
35 }
36
37
38 /*
39   BrowserrDebugCall
40 */
41 static void dcesrv_BrowserrDebugCall(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
42                        struct BrowserrDebugCall *r)
43 {
44         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
45 }
46
47
48 /*
49   BrowserrQueryOtherDomains
50 */
51 static WERROR dcesrv_BrowserrQueryOtherDomains(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
52                        struct BrowserrQueryOtherDomains *r)
53 {
54         DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
55 }
56
57
58 /*
59   BrowserrResetNetlogonState
60 */
61 static void dcesrv_BrowserrResetNetlogonState(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
62                        struct BrowserrResetNetlogonState *r)
63 {
64         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
65 }
66
67
68 /*
69   BrowserrDebugTrace
70 */
71 static void dcesrv_BrowserrDebugTrace(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
72                        struct BrowserrDebugTrace *r)
73 {
74         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
75 }
76
77
78 /*
79   BrowserrQueryStatistics
80 */
81 static void dcesrv_BrowserrQueryStatistics(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
82                        struct BrowserrQueryStatistics *r)
83 {
84         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
85 }
86
87
88 /*
89   BrowserResetStatistics
90 */
91 static void dcesrv_BrowserResetStatistics(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
92                        struct BrowserResetStatistics *r)
93 {
94         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
95 }
96
97
98 /*
99   NetrBrowserStatisticsClear
100 */
101 static void dcesrv_NetrBrowserStatisticsClear(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
102                        struct NetrBrowserStatisticsClear *r)
103 {
104         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
105 }
106
107
108 /*
109   NetrBrowserStatisticsGet
110 */
111 static void dcesrv_NetrBrowserStatisticsGet(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
112                        struct NetrBrowserStatisticsGet *r)
113 {
114         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
115 }
116
117
118 /*
119   BrowserrSetNetlogonState
120 */
121 static void dcesrv_BrowserrSetNetlogonState(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
122                        struct BrowserrSetNetlogonState *r)
123 {
124         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
125 }
126
127
128 /*
129   BrowserrQueryEmulatedDomains
130 */
131 static void dcesrv_BrowserrQueryEmulatedDomains(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
132                        struct BrowserrQueryEmulatedDomains *r)
133 {
134         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
135 }
136
137
138 /*
139   BrowserrServerEnumEx
140 */
141 static void dcesrv_BrowserrServerEnumEx(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
142                        struct BrowserrServerEnumEx *r)
143 {
144         DCESRV_FAULT_VOID(DCERPC_FAULT_OP_RNG_ERROR);
145 }
146
147
148 /* include the generated boilerplate */
149 #include "librpc/gen_ndr/ndr_browser_s.c"