r9152: fix a crash bug
[Samba/aatanasov.git] / source / libnet / libnet_time.h
blobd8f9c1620b5f53b8e0d89ab92be566396287917c
1 /*
2 Unix SMB/CIFS implementation.
4 Copyright (C) Stefan Metzmacher 2004
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 /* struct and enum for getting the time of a remote system */
22 enum libnet_RemoteTOD_level {
23 LIBNET_REMOTE_TOD_GENERIC,
24 LIBNET_REMOTE_TOD_SRVSVC
27 union libnet_RemoteTOD {
28 struct {
29 enum libnet_RemoteTOD_level level;
31 struct _libnet_RemoteTOD_in {
32 const char *server_name;
33 } in;
35 struct _libnet_RemoteTOD_out {
36 time_t time;
37 int time_zone;
38 const char *error_string;
39 } out;
40 } generic;
42 struct {
43 enum libnet_RemoteTOD_level level;
44 struct _libnet_RemoteTOD_in in;
45 struct _libnet_RemoteTOD_out out;
46 } srvsvc;