diff options
Diffstat (limited to 'src/messageparser.h')
-rw-r--r-- | src/messageparser.h | 67 |
1 files changed, 1 insertions, 66 deletions
diff --git a/src/messageparser.h b/src/messageparser.h index c4b9e36..6483794 100644 --- a/src/messageparser.h +++ b/src/messageparser.h @@ -28,72 +28,7 @@ #ifndef __MUNIA_MESSAGEPARSER_H__ #define __MUNIA_MESSAGEPARSER_H__ -#include <list> -#include <string> - -#include "task.h" - -namespace cmd { - typedef enum { - observe, - unobserve, - update, - move, - add, - del, - error - } cmd_t; -}; - -typedef struct { - taskid_t id; -} observe_t; - -typedef struct { - taskid_t id; -} unobserve_t; - -typedef struct { - taskid_t id; - taskid_t parentid; - char title[256]; - char desc[256]; -} add_t; - -typedef struct { - taskid_t id; -} del_t; - -typedef struct { - taskid_t id; - taskid_t parentid; -} move_t; - -typedef struct { - taskid_t id; - char title[256]; - char desc[256]; -} update_t; - - -typedef struct { - cmd::cmd_t cmd; - - union { - observe_t observe; - unobserve_t unobserve; - add_t add; - del_t del; - move_t move; - update_t update; - }; - - TaskIdList nodes; - -} message_t; - - -typedef std::list<message_t> MessageList; +#include "message.h" MessageList parse_msg(std::string msg); |