diff --git a/quad/src/commands/cb_default.h b/quad/src/commands/cb_default.h index c1b95ebed399b76f53f91a128b623c85d94cf332..5fd6f146f597ba0acc4c68676a92abe4cb72c55c 100644 --- a/quad/src/commands/cb_default.h +++ b/quad/src/commands/cb_default.h @@ -5,5 +5,5 @@ /* cb_default used by portable commands.c */ int cb_default(struct modular_structs *structs, struct metadata *meta, unsigned char *data, unsigned short length) { - return 0; + return 0; } diff --git a/quad/src/commands/commands.c b/quad/src/commands/commands.c index 6b903e33ac04afeec771aa8e4531c160a25ad953..06f59ba07aaf6d58b48e8e7ea6ab836fee9608ce 100644 --- a/quad/src/commands/commands.c +++ b/quad/src/commands/commands.c @@ -77,7 +77,9 @@ command_cb cb_respaddnode __attribute__((weak, alias("cb_default"))); command_cb cb_overrideoutput __attribute__((weak, alias("cb_default"))); command_cb cb_sendrtdata __attribute__((weak, alias("cb_default"))); - +command_cb cb_getlogfile __attribute__((weak, alias("cb_default"))); +command_cb cb_resplogfile __attribute__((weak, alias("cb_default"))); +command_cb cb_logblockcommand __attribute__((weak, alias("cb_default"))); /* * Command structure. @@ -90,7 +92,7 @@ command_cb cb_sendrtdata __attribute__((weak, alias("cb_default"))); * DO NOT change this struct without updating the * "MessageTypeID" struct in commands.h as well */ -struct MessageType MessageTypes[MAX_TYPE_ID] = +struct MessageType MessageTypes[MAX_TYPE_ID+3] = { // DEBUG { @@ -280,6 +282,18 @@ struct MessageType MessageTypes[MAX_TYPE_ID] = stringType, // Function pointer &cb_sendrtdata + }, + { "getlogfile", + stringType, + &cb_getlogfile + }, + { "respgetlogfile", + stringType, + &cb_resplogfile + }, + { "logblockcommand", + intType, + &cb_logblockcommand } }; diff --git a/quad/src/commands/commands.h b/quad/src/commands/commands.h index f3af95b73a7238945d66e67e336243d9359f03da..4cabefc2b3b170b7bfeae321aa613f177590125e 100644 --- a/quad/src/commands/commands.h +++ b/quad/src/commands/commands.h @@ -80,7 +80,7 @@ struct MessageType{ }; /* Defined in commands.c */ -extern struct MessageType MessageTypes[MAX_TYPE_ID]; +extern struct MessageType MessageTypes[MAX_TYPE_ID+3]; int findCommand(char * cmdStr); #endif /* __COMMANDS_H */