summaryrefslogtreecommitdiff
path: root/service.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-15 06:19:54 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-15 06:20:00 +0200
commit4f2d528d3bb25cebf8d3ebe83d8193ab4016cb90 (patch)
tree96336ea5c252c903ab4666d49714ececf949dfdf /service.h
parent9e2f7c11fb6ba35ffec2274da3e2d08b10d23965 (diff)
socket: optionally call accept() for incoming connections and spawn one service instance per connection
Diffstat (limited to 'service.h')
-rw-r--r--service.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/service.h b/service.h
index f357fc857e..5ddc180423 100644
--- 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);