event/ServerSocket: pass AllocatedPath to AddPath()

This commit is contained in:
Max Kellermann
2013-10-19 17:40:56 +02:00
parent 7db124068f
commit 3274bb54ad
3 changed files with 21 additions and 16 deletions

View File

@@ -27,6 +27,7 @@
struct sockaddr;
class EventLoop;
class Error;
class AllocatedPath;
typedef void (*server_socket_callback_t)(int fd,
const struct sockaddr *address,
@@ -100,7 +101,7 @@ public:
* ignore errors
* @return true on success
*/
bool AddPath(const char *path, Error &error);
bool AddPath(AllocatedPath &&path, Error &error);
/**
* Add a socket descriptor that is accepting connections. After this