feat: added sling url decomposition
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user