feat: added sling url decomposition

This commit is contained in:
2021-03-26 22:16:59 +01:00
parent f120b104e5
commit 8152ad6e9a
5 changed files with 104 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
#ifdef ENABLE_SELF_TEST
#include <myke/debug/debug.h>
#include <myke/util/slingurl.h>
#endif
@@ -56,6 +57,8 @@ void exec_self_test(const char *args);
void smash(const char *args);
void slingurl(const char* args);
#endif
cmd_handler cmd_handlers[] = {
@@ -65,6 +68,7 @@ cmd_handler cmd_handlers[] = {
{"ide", ide},
{"shutdown", shutdown},
{"explode", explode},
{"slingurl", slingurl},
#ifdef ENABLE_SELF_TEST
{"self-test", exec_self_test},
{"smash", smash},
@@ -72,6 +76,10 @@ cmd_handler cmd_handlers[] = {
{NULL, NULL},
};
void slingurl(const char* args) {
slingurl_decompose(args);
}
void smash(const char *args) {
char data[16];
memset(data, 'A', 32);