gp: Fix startup scripts add not always set runonce
[Samba.git] / source3 / utils / conn_tdb.h
blobcbcf11d960aadd3ec4613b015200e92b858b9f21
1 /*
2 Unix SMB/CIFS implementation.
3 Low-level connections.tdb access functions
4 Copyright (C) Volker Lendecke 2007
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 3 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, see <http://www.gnu.org/licenses/>.
20 /* key and data in the connections database - used in smbstatus and smbd */
22 struct connections_data {
23 struct server_id pid;
24 int cnum;
25 uint32_t sess_id;
26 uid_t uid;
27 gid_t gid;
28 fstring servicename;
29 fstring addr;
30 fstring machine;
31 NTTIME start;
32 uint8_t encryption_flags;
33 uint16_t cipher;
34 uint16_t dialect;
35 uint8_t signing_flags;
36 uint16_t signing;
39 /* The following definitions come from lib/conn_tdb.c */
41 int connections_forall_read(int (*fn)(const struct connections_data *data,
42 void *private_data),
43 void *private_data);