summaryrefslogtreecommitdiff
path: root/src/msgparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/msgparser.h')
-rw-r--r--src/msgparser.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/msgparser.h b/src/msgparser.h
index 07d67e9..fa853fa 100644
--- a/src/msgparser.h
+++ b/src/msgparser.h
@@ -31,6 +31,8 @@
#include <vector>
#include <string>
+#include "task.h"
+
namespace cmd {
enum cmd_t {
update,
@@ -42,10 +44,11 @@ namespace cmd {
};
typedef struct {
+ int id;
int x;
int y;
- char title[32];
- char desc[32];
+ char title[256];
+ char desc[256];
} add_t;
typedef struct {
int id;
@@ -57,8 +60,8 @@ typedef struct {
} move_t;
typedef struct {
int id;
- char title[32];
- char desc[32];
+ char title[256];
+ char desc[256];
} update_t;
@@ -80,4 +83,6 @@ typedef std::vector<msg_t> MsgVector;
MsgVector parse_msg(std::string msg);
+msg_t create_msg(cmd::cmd_t msg_type, task_t task);
+std::string msg_tostring(msg_t msg);
#endif/*__MUNIA_MSGPARSER_H__*/