diff options
author | Tom Gundersen <teg@jklm.no> | 2015-10-06 12:06:56 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-10-06 12:06:56 +0200 |
commit | e1719ef19d542c88e319e77aaf970dc36c2269f4 (patch) | |
tree | 674f2f4b65756cb993709a8c75b82c082fb68a36 /src/core/socket.h | |
parent | f0990739fc24e60facb7ef0c3e97a046bd1d9d17 (diff) | |
parent | df9d6993b677c05c7f502acafc5c8efa642792fe (diff) |
Merge pull request #1468 from poettering/fdnames
Add support for naming fds for socket activation and more
Diffstat (limited to 'src/core/socket.h')
-rw-r--r-- | src/core/socket.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/socket.h b/src/core/socket.h index d20dc8d81a..94cda8a90d 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -154,16 +154,22 @@ struct Socket { char *user, *group; bool reset_cpu_usage:1; + + char *fdname; }; /* Called from the service code when collecting fds */ -int socket_collect_fds(Socket *s, int **fds, unsigned *n_fds); +int socket_collect_fds(Socket *s, int **fds); /* Called from the service code when a per-connection service ended */ void socket_connection_unref(Socket *s); void socket_free_ports(Socket *s); +int socket_instantiate_service(Socket *s); + +char *socket_fdname(Socket *s); + extern const UnitVTable socket_vtable; const char* socket_exec_command_to_string(SocketExecCommand i) _const_; @@ -173,5 +179,3 @@ const char* socket_result_to_string(SocketResult i) _const_; SocketResult socket_result_from_string(const char *s) _pure_; const char* socket_port_type_to_string(SocketPort *p) _pure_; - -int socket_instantiate_service(Socket *s); |