chiark / gitweb /
server/gstdecode.c: Add `-s' option to omit DisOrder's usual framing.
[disorder] / lib / client-common.h
CommitLineData
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
ff92debd
MW
30#define DISORDER_FS_NOTPRIV 1u
31
32socklen_t disorder_find_server(struct config *c, unsigned flags,
33 struct sockaddr **sap, char **namep);
319d7107 34socklen_t find_server(struct config *c, struct sockaddr **sap, char **namep);
460b9539 35
ad131c25
RK
36/** @brief Marker for a command body */
37extern const char disorder__body[1];
38
39/** @brief Marker for a list of args */
40extern const char disorder__list[1];
41
bcb2af72
RK
42/** @brief Marker for an integer */
43extern const char disorder__integer[1];
44
45/** @brief Marker for a timestamp */
46extern const char disorder__time[1];
47
460b9539 48#endif /* CLIENT_COMMON_H */
49
50/*
51Local Variables:
52c-basic-offset:2
53comment-column:40
54fill-column:79
55indent-tabs-mode:nil
56End:
57*/