summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-07-22 21:39:52 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-07-22 21:39:52 +0200
commited9ea7fd82a529966eee2919ddf82762cf741d91 (patch)
tree606c2059135d2259d6ceb573edc6892d97b5c0f7 /include
parent3625c3196fe1ba7f3695d30379316c2e250ee54b (diff)
cmd: add application data to cmd_arg
Diffstat (limited to 'include')
-rw-r--r--include/baresip.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/baresip.h b/include/baresip.h
index 0f2dc81..cffa5cb 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -643,6 +643,7 @@ struct cmd_arg {
char key; /**< Which key was pressed */
char *prm; /**< Optional parameter */
bool complete; /**< True if complete */
+ void *data; /**< Application data */
};
/** Defines a command */
@@ -657,7 +658,8 @@ struct cmd_ctx;
int cmd_register(const struct cmd *cmdv, size_t cmdc);
void cmd_unregister(const struct cmd *cmdv);
-int cmd_process(struct cmd_ctx **ctxp, char key, struct re_printf *pf);
+int cmd_process(struct cmd_ctx **ctxp, char key, struct re_printf *pf,
+ void *data);
int cmd_print(struct re_printf *pf, void *unused);