Skip to content
Snippets Groups Projects
Commit 0414d9fc authored by Zach Eisele's avatar Zach Eisele
Browse files

changes needed for logfile command

parent 340c2461
No related branches found
No related tags found
3 merge requests!76lots of gui updates,!75Lost of gui updates,!74lots of gui updates among others
......@@ -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;
}
......@@ -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
}
};
......
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment