diff options
Diffstat (limited to '')
-rw-r--r-- | src/ServerSocket.hxx (renamed from src/server_socket.h) | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/server_socket.h b/src/ServerSocket.hxx index 7caa4bbf2..eea4b0851 100644 --- a/src/server_socket.h +++ b/src/ServerSocket.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -17,14 +17,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_SERVER_SOCKET_H -#define MPD_SERVER_SOCKET_H +#ifndef MPD_SERVER_SOCKET_HXX +#define MPD_SERVER_SOCKET_HXX -#include <stdbool.h> +#include "gerror.h" -#include <glib.h> +#include <stddef.h> struct sockaddr; +class EventLoop; typedef void (*server_socket_callback_t)(int fd, const struct sockaddr *address, @@ -32,7 +33,8 @@ typedef void (*server_socket_callback_t)(int fd, void *ctx); struct server_socket * -server_socket_new(server_socket_callback_t callback, void *callback_ctx); +server_socket_new(EventLoop &loop, + server_socket_callback_t callback, void *callback_ctx); void server_socket_free(struct server_socket *ss); |