summaryrefslogtreecommitdiffstats
path: root/nserver/src/ncmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'nserver/src/ncmd.h')
-rw-r--r--nserver/src/ncmd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/nserver/src/ncmd.h b/nserver/src/ncmd.h
index c1cf9a0..80ca45a 100644
--- a/nserver/src/ncmd.h
+++ b/nserver/src/ncmd.h
@@ -9,9 +9,21 @@
#define CMD_MIN_SIZE 5
#define CMD_MAX_SIZE 120
+enum FUNCTIONS {
+ NS_CREATE,
+ NS_SAMPLE,
+ NS_MEAN,
+ NS_DUMP,
+ NS_DELETE,
+ NS_LIST,
+ NS_NOP = -1
+};
+
int sanitize(char *cmd);
char *check_cmd(char *cmd);
struct bstrList *cmd_parts(char *cmd);
+int find_function(struct bstrList *cmd_parts);
+
#endif