aboutsummaryrefslogtreecommitdiff
path: root/sam.h
diff options
context:
space:
mode:
Diffstat (limited to 'sam.h')
-rw-r--r--sam.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sam.h b/sam.h
new file mode 100644
index 0000000..fb4f314
--- /dev/null
+++ b/sam.h
@@ -0,0 +1,21 @@
+#ifndef SAM_H
+#define SAM_H
+
+#include "vis.h"
+
+enum SamError {
+ SAM_ERR_OK,
+ SAM_ERR_MEMORY,
+ SAM_ERR_ADDRESS,
+ SAM_ERR_NO_ADDRESS,
+ SAM_ERR_UNMATCHED_BRACE,
+ SAM_ERR_REGEX,
+ SAM_ERR_TEXT,
+ SAM_ERR_COMMAND,
+ SAM_ERR_EXECUTE,
+};
+
+enum SamError sam_cmd(Vis *vis, const char *cmd);
+const char *sam_error(enum SamError);
+
+#endif