view src/log/log-connection.h @ 14682:d0d7b810646b

Make sure we check all the functions' return values. Minor API changes to simplify this. Checked using a patched clang that adds attribute(warn_unused_result) to all functions. This commit fixes several error handling mistakes.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 Jun 2012 01:14:03 +0300
parents 66f875b5102b
children 8f7dee2e7e05
line wrap: on
line source

#ifndef LOG_CONNECTION_H
#define LOG_CONNECTION_H

struct log_connection;

void log_connection_create(struct log_error_buffer *errorbuf,
			   int fd, int listen_fd);

void log_connections_init(void);
void log_connections_deinit(void);

#endif