r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
[samba.git] / source3 / include / rpc_brs.h
1 /* 
2    Unix SMB/CIFS implementation.
3    SMB parameters and setup
4    Copyright (C) Andrew Tridgell 1992-1999
5    Copyright (C) Luke Kenneth Casson Leighton 1996-1999
6    
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3 of the License, or
10    (at your option) any later version.
11    
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16    
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef _RPC_BRS_H /* _RPC_BRS_H */
22 #define _RPC_BRS_H 
23
24
25 /* brssvc pipe */
26 #define BRS_QUERY_INFO    0x02
27
28
29 /* BRS_Q_QUERY_INFO - probably a capabilities request */
30 typedef struct q_brs_query_info_info
31 {
32         uint32 ptr_srv_name;         /* pointer (to server name?) */
33         UNISTR2 uni_srv_name;        /* unicode server name starting with '\\' */
34
35         uint16 switch_value1;            /* info level 100 (0x64) */
36         /* align */
37         uint16 switch_value2;            /* info level 100 (0x64) */
38
39         uint32 ptr;
40         uint32 pad1;
41         uint32 pad2;
42
43 } BRS_Q_QUERY_INFO;
44
45
46 /* BRS_INFO_100 - level 100 info */
47 typedef struct brs_info_100_info
48 {
49         uint32 pad1;
50         uint32 ptr2;
51         uint32 pad2;
52         uint32 pad3;
53
54 } BRS_INFO_100;
55
56
57 /* BRS_R_QUERY_INFO - probably a capabilities request */
58 typedef struct r_brs_query_info_info
59 {
60         uint16 switch_value1;          /* 100 (0x64) - switch value */
61         /* align */
62         uint16 switch_value2;            /* info level 100 (0x64) */
63
64         /* for now, only level 100 is supported.  this should be an enum container */
65         uint32 ptr_1;              /* pointer 1 */
66
67         union
68         {
69                 BRS_INFO_100 *brs100;      /* browser info level 100 */
70                 void *id;
71
72         } info;
73
74         NTSTATUS status;             /* return status */
75
76 } BRS_R_QUERY_INFO;
77
78 #endif /* _RPC_BRS_H */
79