Control protocol: implement QUERYSERVICENAME to get name from handle
[oweals/dinit.git] / src / includes / control-cmds.h
index 3c734cb6078846aaa7f330bbc13ed71f1f8b215c..7b80adacca8339bbe8dba704a40b339e6534135e 100644 (file)
@@ -39,6 +39,9 @@ constexpr static int DINIT_CP_QUERY_LOAD_MECH = 13;
 // Add a waits for dependency from one service to another, and start the dependency:
 constexpr static int DINIT_CP_ENABLESERVICE = 14;
 
+// Find the name of a service (from a handle)
+constexpr static int DINIT_CP_QUERYSERVICENAME = 15;
+
 // Replies:
 
 // Reply: ACK/NAK to request
@@ -81,6 +84,9 @@ constexpr static int DINIT_RP_LOADER_MECH = 64;
 // Dependent services prevent stopping/restarting. Includes size_t count, handle_t * N handles.
 constexpr static int DINIT_RP_DEPENDENTS = 65;
 
+// Service name:
+constexpr static int DINIT_RP_SERVICENAME = 66;
+
 // Information:
 
 // Service event occurred (4-byte service handle, 1 byte event code)