We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bbda9e commit 9496821Copy full SHA for 9496821
src/commands.h
@@ -10,6 +10,13 @@ struct LacoCommand {
10
LacoHandler handler;
11
};
12
13
+/**
14
+ * Goes through each instance from the list of commands and see if there is
15
+ * a match with for command_keyword. When there is a match, the defined
16
+ * handler inside the LacoCommand gets called -- passing in LacoState and
17
+ * the arguments. The list of commands expects the last entry of the array
18
+ * to be `{ NULL, NULL }` for ease of iteration.
19
+ */
20
void laco_dispatch(const struct LacoCommand* commands,
21
struct LacoState* laco, const char* command_keyword,
22
const char** arguments);
0 commit comments