From 4046cf07c3d5ed41182c1a931f4d477879b91c88 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Mon, 14 Jun 2010 02:54:20 +0300 Subject: cmd_node: parse incoming commands Signed-off-by: Felipe Contreras --- pn_cmd_node.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pn_cmd_node.c b/pn_cmd_node.c index 7f3b394..fd2da76 100644 --- a/pn_cmd_node.c +++ b/pn_cmd_node.c @@ -1,6 +1,7 @@ #include "pn_cmd_node.h" #include "pn_trans.h" #include "pn_parser.h" +#include "pn_cmd.h" #include @@ -84,7 +85,11 @@ got_command(struct pn_cmd_node *self, const char *string, gsize length) { + struct pn_cmd *cmd; show_cmd(true, string, length); + cmd = pn_cmd_new_from_string(string, length); + pn_warn(self, "unhandled command: %.*s", length, string); + pn_cmd_free(cmd); } static void -- cgit v1.2.3