trigger: rework timeout handling and command queueing
[project/procd.git] / utils / utils.h
index c2c1cb4..908c314 100644 (file)
@@ -19,6 +19,8 @@
 #include <libubox/blob.h>
 #include <libubox/blobmsg.h>
 
+#define CMDLINE_SIZE 2048
+
 struct blobmsg_list_node {
        struct avl_node avl;
        struct blob_attr *data;
@@ -51,4 +53,7 @@ bool blobmsg_list_equal(struct blobmsg_list *l1, struct blobmsg_list *l2);
 void blobmsg_list_move(struct blobmsg_list *list, struct blobmsg_list *src);
 char* get_cmdline_val(const char* name, char* out, int len);
 
+int patch_fd(const char *device, int fd, int flags);
+int patch_stdio(const char *device);
+
 #endif