view irccd/transport.h @ 1105:96c5f34247d2

misc: remove remnant of GNUmakefile
author David Demelier <markand@malikania.fr>
date Wed, 20 Oct 2021 14:15:23 +0200
parents 49a126e8aed0
children f06e9761cc90
line wrap: on
line source

/*
 * transport.h -- remote command support
 *
 * Copyright (c) 2013-2021 David Demelier <markand@malikania.fr>
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef IRCCD_TRANSPORT_H
#define IRCCD_TRANSPORT_H

#include <sys/types.h>

#include "limits.h"

struct pollfd;

struct peer;

int
transport_bind(const char *);

int
transport_bindp(const char *, uid_t, gid_t);

void
transport_prepare(struct pollfd *);

struct peer *
transport_flush(const struct pollfd *);

void
transport_finish(void);

#endif /* !IRCCD_TRANSPORT_H */