fixed the Makefile so we don't rebuild libsmbclient and build_env.h
[ira/wip.git] / source / include / rpc_brs.h
1 /* 
2    Unix SMB/Netbios implementation.
3    Version 1.9.
4    SMB parameters and setup
5    Copyright (C) Andrew Tridgell 1992-1999
6    Copyright (C) Luke Kenneth Casson Leighton 1996-1999
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 2 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, write to the Free Software
20    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 #ifndef _RPC_BRS_H /* _RPC_BRS_H */
24 #define _RPC_BRS_H 
25
26
27 /* brssvc pipe */
28 #define BRS_QUERY_INFO    0x02
29
30
31 /* BRS_Q_QUERY_INFO - probably a capabilities request */
32 typedef struct q_brs_query_info_info
33 {
34         uint32 ptr_srv_name;         /* pointer (to server name?) */
35         UNISTR2 uni_srv_name;        /* unicode server name starting with '\\' */
36
37         uint16 switch_value1;            /* info level 100 (0x64) */
38         /* align */
39         uint16 switch_value2;            /* info level 100 (0x64) */
40
41         uint32 ptr;
42         uint32 pad1;
43         uint32 pad2;
44
45 } BRS_Q_QUERY_INFO;
46
47
48 /* BRS_INFO_100 - level 100 info */
49 typedef struct brs_info_100_info
50 {
51         uint32 pad1;
52         uint32 ptr2;
53         uint32 pad2;
54         uint32 pad3;
55
56 } BRS_INFO_100;
57
58
59 /* BRS_R_QUERY_INFO - probably a capabilities request */
60 typedef struct r_brs_query_info_info
61 {
62         uint16 switch_value1;          /* 100 (0x64) - switch value */
63         /* align */
64         uint16 switch_value2;            /* info level 100 (0x64) */
65
66         /* for now, only level 100 is supported.  this should be an enum container */
67         uint32 ptr_1;              /* pointer 1 */
68
69         union
70         {
71                 BRS_INFO_100 *brs100;      /* browser info level 100 */
72                 void *id;
73
74         } info;
75
76         NTSTATUS status;             /* return status */
77
78 } BRS_R_QUERY_INFO;
79
80 #endif /* _RPC_BRS_H */
81