aboutsummaryrefslogtreecommitdiffstats
path: root/src/server_socket.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-13 20:58:57 +0100
committerMax Kellermann <max@duempel.org>2012-02-13 21:32:42 +0100
commitf5294414004c258236a9d31ae3d3ee00ccb26717 (patch)
tree65fa29d538e55f9e429c0050ecde5797be1367d5 /src/server_socket.h
parent03664d0426cd9a10d0f222fbf68e9a43c1f84eb9 (diff)
downloadmpd-f5294414004c258236a9d31ae3d3ee00ccb26717.tar.gz
mpd-f5294414004c258236a9d31ae3d3ee00ccb26717.tar.xz
mpd-f5294414004c258236a9d31ae3d3ee00ccb26717.zip
server_socket: add method _add_fd()
Diffstat (limited to 'src/server_socket.h')
-rw-r--r--src/server_socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server_socket.h b/src/server_socket.h
index e5777f7b3..7caa4bbf2 100644
--- a/src/server_socket.h
+++ b/src/server_socket.h
@@ -44,6 +44,14 @@ void
server_socket_close(struct server_socket *ss);
/**
+ * Add a socket descriptor that is accepting connections. After this
+ * has been called, don't call server_socket_open(), because the
+ * socket is already open.
+ */
+bool
+server_socket_add_fd(struct server_socket *ss, int fd, GError **error_r);
+
+/**
* Add a listener on a port on all interfaces.
*
* @param port the TCP port