diff options
author | ZoRo <dos21h@gmail.com> | 2017-01-26 22:23:28 +0000 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2017-01-26 22:23:28 +0000 |
commit | 67860598185d248756316549a7522968f7294990 (patch) | |
tree | b329576eca4f5dccbfec2bf7a4952abc93b8b9c8 /mq_cmd.h | |
parent | a588aa017512d3cc70dde6627d1218020e755259 (diff) | |
download | agni-67860598185d248756316549a7522968f7294990.tar.gz agni-67860598185d248756316549a7522968f7294990.zip |
Made working basic mq IPC communication
Diffstat (limited to 'mq_cmd.h')
-rw-r--r-- | mq_cmd.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5,6 +5,8 @@ #include <stdio.h> #include <string.h> +#include "debug.h" + typedef struct mq_cmd { int id; @@ -13,6 +15,7 @@ typedef struct mq_cmd } mq_cmd; mq_cmd* mq_cmd_create(int id, char *cmd, size_t cmd_sz, char *param, size_t param_sz); +mq_cmd* mq_cmd_creates(char *str, size_t sz); int mq_cmd_id(mq_cmd *cmd, int *id); char* mq_cmd_cmd(mq_cmd *cmd, char **buf, size_t *sz); int mq_cmd_param(mq_cmd *cmd, char **param, size_t *sz); |