]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/monitor.h
Report container exit status to monitord
[mirror_lxc.git] / src / lxc / monitor.h
index 229696bd74136ad2265795ee6e2cb09aa8de8ef7..500a9f250c27a79e16de745228e3147f7d25db13 100644 (file)
@@ -32,6 +32,7 @@
 typedef enum {
        lxc_msg_state,
        lxc_msg_priority,
+       lxc_msg_exit_code,
 } lxc_msg_type_t;
 
 struct lxc_msg {
@@ -46,6 +47,8 @@ extern int lxc_monitor_fifo_name(const char *lxcpath, char *fifo_path,
                                 size_t fifo_path_sz, int do_mkdirp);
 extern void lxc_monitor_send_state(const char *name, lxc_state_t state,
                            const char *lxcpath);
+extern void lxc_monitor_send_exit_code(const char *name, int exit_code,
+                           const char *lxcpath);
 extern int lxc_monitord_spawn(const char *lxcpath);
 
 #endif