From 67d66e73d233e156aa7dddab2d56c0bb2211c02e Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 25 Aug 2021 15:44:03 +0200 Subject: Structured the commands and environment variables --- src/router/routing.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/router/routing.h') diff --git a/src/router/routing.h b/src/router/routing.h index bab5502..d5e43ca 100644 --- a/src/router/routing.h +++ b/src/router/routing.h @@ -15,6 +15,7 @@ typedef struct routing { const char *envp[256]; /* environment variables */ int envc_dialing; /* envc index for dialing number */ int envc_keypad; /* envc index for keypad */ + int envc_complete; /* envc index for complete */ pid_t script_pid; /* pid of routing script */ int script_stdin; /* pipe to stdin */ @@ -32,8 +33,9 @@ typedef struct routing { struct string_queue *stderr_queue; /* strings read from script */ } routing_t; +void env_help(void); void routing_env_msg(routing_t *routing, osmo_cc_msg_t *msg); -void routing_env_dialing(routing_t *routing, const char *number, const char *keypad); +void routing_env_dialing(routing_t *routing, char *number, char *keypad, int complete); void routing_env_free(routing_t *routing); void routing_start(routing_t *routing, const char *script, const char *shell); void routing_stop(routing_t *routing); -- cgit v1.2.3