chiark / gitweb /
socket: optionally call accept() for incoming connections and spawn one service insta...
[elogind.git] / service.h
index f357fc857e4f3e55fe6d82beda3c7ed9d30397b1..5ddc180423991a6a87d5b8dbd502c77b5333f010 100644 (file)
--- a/service.h
+++ b/service.h
@@ -112,11 +112,15 @@ struct Service {
 
         RateLimit ratelimit;
 
+        int socket_fd;
+
         Watch timer_watch;
 };
 
 extern const UnitVTable service_vtable;
 
+int service_set_socket_fd(Service *s, int fd);
+
 const char* service_state_to_string(ServiceState i);
 ServiceState service_state_from_string(const char *s);