Skip to content
Snippets Groups Projects
Commit a790ced2 authored by Corey Farrell's avatar Corey Farrell
Browse files

func_callerid: Initialize app argument structures.

This module uses AST_DEFINE_APP_ARGS_TYPE to define struct's instead of
directly using AST_DECLARE_APP_ARGS.  Initialize the variables declared
in this way.

Change-Id: If97fbdd8d63a204e2efd498a192effc14e90fb31
parent 11a1e07a
No related branches found
No related tags found
No related merge requests found
...@@ -978,7 +978,7 @@ static int callerpres_write(struct ast_channel *chan, const char *cmd, char *dat ...@@ -978,7 +978,7 @@ static int callerpres_write(struct ast_channel *chan, const char *cmd, char *dat
static int callerid_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) static int callerid_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
{ {
char *parms; char *parms;
struct ast_party_members member; struct ast_party_members member = { 0, };
AST_DECLARE_APP_ARGS(args, AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(member); /*!< Member name */ AST_APP_ARG(member); /*!< Member name */
AST_APP_ARG(cid); /*!< Optional caller id to parse instead of from the channel. */ AST_APP_ARG(cid); /*!< Optional caller id to parse instead of from the channel. */
...@@ -1135,8 +1135,8 @@ static int callerid_write(struct ast_channel *chan, const char *cmd, char *data, ...@@ -1135,8 +1135,8 @@ static int callerid_write(struct ast_channel *chan, const char *cmd, char *data,
enum ID_FIELD_STATUS status; enum ID_FIELD_STATUS status;
char *val; char *val;
char *parms; char *parms;
struct ast_party_func_args args; struct ast_party_func_args args = { 0, };
struct ast_party_members member; struct ast_party_members member = { 0, };
if (!value || !chan) { if (!value || !chan) {
return -1; return -1;
...@@ -1291,7 +1291,7 @@ static int callerid_write(struct ast_channel *chan, const char *cmd, char *data, ...@@ -1291,7 +1291,7 @@ static int callerid_write(struct ast_channel *chan, const char *cmd, char *data,
*/ */
static int connectedline_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) static int connectedline_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
{ {
struct ast_party_members member; struct ast_party_members member = { 0, };
char *read_what; char *read_what;
enum ID_FIELD_STATUS status; enum ID_FIELD_STATUS status;
...@@ -1359,8 +1359,8 @@ static int connectedline_write(struct ast_channel *chan, const char *cmd, char * ...@@ -1359,8 +1359,8 @@ static int connectedline_write(struct ast_channel *chan, const char *cmd, char *
char *val; char *val;
char *parms; char *parms;
void (*set_it)(struct ast_channel *chan, const struct ast_party_connected_line *connected, const struct ast_set_party_connected_line *update); void (*set_it)(struct ast_channel *chan, const struct ast_party_connected_line *connected, const struct ast_set_party_connected_line *update);
struct ast_party_func_args args; struct ast_party_func_args args = { 0, };
struct ast_party_members member; struct ast_party_members member = { 0, };
struct ast_flags opts; struct ast_flags opts;
char *opt_args[CONNECTED_LINE_OPT_ARG_ARRAY_SIZE]; char *opt_args[CONNECTED_LINE_OPT_ARG_ARRAY_SIZE];
enum ID_FIELD_STATUS status; enum ID_FIELD_STATUS status;
...@@ -1464,7 +1464,7 @@ static int connectedline_write(struct ast_channel *chan, const char *cmd, char * ...@@ -1464,7 +1464,7 @@ static int connectedline_write(struct ast_channel *chan, const char *cmd, char *
*/ */
static int redirecting_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) static int redirecting_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
{ {
struct ast_party_members member; struct ast_party_members member = { 0, };
char *read_what; char *read_what;
const struct ast_party_redirecting *ast_redirecting; const struct ast_party_redirecting *ast_redirecting;
enum ID_FIELD_STATUS status; enum ID_FIELD_STATUS status;
...@@ -1601,8 +1601,8 @@ static int redirecting_write(struct ast_channel *chan, const char *cmd, char *da ...@@ -1601,8 +1601,8 @@ static int redirecting_write(struct ast_channel *chan, const char *cmd, char *da
char *val; char *val;
char *parms; char *parms;
void (*set_it)(struct ast_channel *chan, const struct ast_party_redirecting *redirecting, const struct ast_set_party_redirecting *update); void (*set_it)(struct ast_channel *chan, const struct ast_party_redirecting *redirecting, const struct ast_set_party_redirecting *update);
struct ast_party_func_args args; struct ast_party_func_args args = { 0, };
struct ast_party_members member; struct ast_party_members member = { 0, };
struct ast_flags opts; struct ast_flags opts;
char *opt_args[REDIRECTING_OPT_ARG_ARRAY_SIZE]; char *opt_args[REDIRECTING_OPT_ARG_ARRAY_SIZE];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment