2 Unix SMB/CIFS implementation.
5 Copyright (C) Volker Lendecke 2004
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 2 of the License, or
10 (at your option) any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 /* At this moment these are just dummy functions, but you might get the
27 NTSTATUS rap_netshareenum(struct smbsrv_request *req,
28 struct rap_NetShareEnum *r)
32 r->out.info = talloc_array_p(req,
33 union rap_shareenum_info, 2);
35 strncpy(r->out.info[0].info1.name, "C$", sizeof(r->out.info[0].info1.name));
36 r->out.info[0].info1.pad = 0;
37 r->out.info[0].info1.type = 0;
38 r->out.info[0].info1.comment = talloc_strdup(req, "Bla");
40 strncpy(r->out.info[1].info1.name, "IPC$", sizeof(r->out.info[0].info1.name));
41 r->out.info[1].info1.pad = 0;
42 r->out.info[1].info1.type = 1;
43 r->out.info[1].info1.comment = talloc_strdup(req, "Blub");
48 NTSTATUS rap_netserverenum2(struct smbsrv_request *req,
49 struct rap_NetServerEnum2 *r)