r12422: Some kerberos comments and clarifications.
[samba.git] / source / winbind / wb_samba3_protocol.h
1 /* 
2    Unix SMB/CIFS implementation.
3    Main winbindd samba3 server routines
4
5    Copyright (C) Stefan Metzmacher      2005
6    Copyright (C) Volker Lendecke        2005
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 struct wbsrv_samba3_call {
24         /* pointer back to the generic winbind call */
25         struct wbsrv_call *call;
26
27         /* here the backend can store stuff like composite_context's ... */
28         void *private_data;
29
30         /* the request structure of the samba3 protocol */
31         struct winbindd_request request;
32         
33         /* the response structure of the samba3 protocol*/
34         struct winbindd_response response;
35 };
36
37 #define WBSRV_SAMBA3_SET_STRING(dest, src) do { \
38         strncpy(dest, src, sizeof(dest)-1);\
39 } while(0)