Commit | Line | Data |
---|---|---|
460b9539 | 1 | /* |
2 | * This file is part of DisOrder | |
cca89d7c | 3 | * Copyright (C) 2004-8, 2011, 2013 Richard Kettlewell |
460b9539 | 4 | * |
e7eb3a27 | 5 | * This program is free software: you can redistribute it and/or modify |
460b9539 | 6 | * it under the terms of the GNU General Public License as published by |
e7eb3a27 | 7 | * the Free Software Foundation, either version 3 of the License, or |
460b9539 | 8 | * (at your option) any later version. |
e7eb3a27 RK |
9 | * |
10 | * This program is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
460b9539 | 15 | * You should have received a copy of the GNU General Public License |
e7eb3a27 | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
460b9539 | 17 | */ |
132a5a4a RK |
18 | /** @file lib/client-common.h |
19 | * @brief Common code to client APIs | |
20 | */ | |
460b9539 | 21 | |
22 | #ifndef CLIENT_COMMON_H | |
23 | #define CLIENT_COMMON_H | |
24 | ||
05b75f8d | 25 | #include <sys/types.h> |
cca89d7c RK |
26 | #if HAVE_SYS_SOCKET_H |
27 | # include <sys/socket.h> | |
28 | #endif | |
05b75f8d | 29 | |
319d7107 | 30 | socklen_t find_server(struct config *c, struct sockaddr **sap, char **namep); |
460b9539 | 31 | |
ad131c25 RK |
32 | /** @brief Marker for a command body */ |
33 | extern const char disorder__body[1]; | |
34 | ||
35 | /** @brief Marker for a list of args */ | |
36 | extern const char disorder__list[1]; | |
37 | ||
bcb2af72 RK |
38 | /** @brief Marker for an integer */ |
39 | extern const char disorder__integer[1]; | |
40 | ||
41 | /** @brief Marker for a timestamp */ | |
42 | extern const char disorder__time[1]; | |
43 | ||
460b9539 | 44 | #endif /* CLIENT_COMMON_H */ |
45 | ||
46 | /* | |
47 | Local Variables: | |
48 | c-basic-offset:2 | |
49 | comment-column:40 | |
50 | fill-column:79 | |
51 | indent-tabs-mode:nil | |
52 | End: | |
53 | */ |