diff options
author | David M. Lee <dlee@digium.com> | 2013-08-02 14:36:32 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-08-02 14:36:32 +0000 |
commit | 537ecebd2dc27120144498598f32dec97db6808d (patch) | |
tree | a3815f8c3f9cc7e2443d8cebc31a7b1d109aa81d /res/ari/resource_events.h | |
parent | 10c91bc96eafbf5f897869ede83127c9c267981c (diff) |
ARI - implement allowMultiple for parameters
Swagger allows parameters to be specified as 'allowMultiple', meaning
that the parameter may be specified as a comma separated list of
values.
I had written some of the API docs using that, but promptly forgot
about implementing it. This patch finally fills in that gap.
The codegen template was updated to represent 'allowMultiple' fields
as array/size fields in the _args structs. It also parses the comma
separated list using ast_app_separate_args(), so quoted strings in the
argument will be handled properly.
Review: https://reviewboard.asterisk.org/r/2698/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ari/resource_events.h')
-rw-r--r-- | res/ari/resource_events.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/res/ari/resource_events.h b/res/ari/resource_events.h index 554ed9a87..ac7600e03 100644 --- a/res/ari/resource_events.h +++ b/res/ari/resource_events.h @@ -41,8 +41,12 @@ /*! \brief Argument struct for ast_ari_event_websocket() */ struct ast_event_websocket_args { - /*! \brief Comma seperated list of applications to subscribe to. */ - const char *app; + /*! \brief Array of Applications to subscribe to. */ + const char **app; + /*! \brief Length of app array. */ + size_t app_count; + /*! \brief Parsing context for app. */ + char *app_parse; }; /*! * \brief WebSocket connection for events. |