e1_input: change prototype of ->sign_link(...)

This patch removes the struct e1inp_sign_link parameter since this
is already available in the msgb->dst field of the message.
This commit is contained in:
Pablo Neira Ayuso 2011-07-05 15:29:23 +02:00
parent add3ec8477
commit dbd82fb5b1
6 changed files with 8 additions and 7 deletions

View File

@ -127,7 +127,7 @@ struct e1inp_line_ops {
struct e1inp_sign_link * (*sign_link_up)(void *unit_info, struct e1inp_line *line, enum e1inp_sign_type type);
void (*sign_link_down)(struct e1inp_line *line);
int (*sign_link)(struct msgb *msg, struct e1inp_sign_link *link);
int (*sign_link)(struct msgb *msg);
};
struct e1inp_line {

View File

@ -457,7 +457,8 @@ int e1inp_rx_ts(struct e1inp_ts *ts, struct msgb *msg,
"no action set for signalling messages.\n");
return -ENOENT;
}
ts->line->ops->sign_link(msg, link);
msg->dst = link;
ts->line->ops->sign_link(msg);
break;
case E1INP_TS_TYPE_TRAU:
ret = subch_demux_in(&ts->trau.demux, msg->l2h, msgb_l2len(msg));

View File

@ -186,7 +186,7 @@ static int handle_ts1_read(struct osmo_fd *bfd)
"no action set for signalling messages.\n");
return -ENOENT;
}
e1i_ts->line->ops->sign_link(msg, link);
e1i_ts->line->ops->sign_link(msg);
return ret;
}

View File

@ -386,7 +386,7 @@ static int handle_ts1_read(struct osmo_fd *bfd)
"no action set for signalling messages.\n");
return -ENOENT;
}
e1i_ts->line->ops->sign_link(msg, link);
e1i_ts->line->ops->sign_link(msg);
return ret;
}
@ -782,7 +782,7 @@ static int ipaccess_bts_cb(struct ipa_client_link *link, struct msgb *msg)
"no action set for signalling messages.\n");
return -ENOENT;
}
link->line->ops->sign_link(msg, sign_link);
link->line->ops->sign_link(msg);
return 0;
}

View File

@ -55,7 +55,7 @@ static void sign_link_down(struct e1inp_line *line)
e1inp_sign_link_destroy(rsl_sign_link);
}
static int sign_link(struct msgb *msg, struct e1inp_sign_link *link)
static int sign_link(struct msgb *msg)
{
LOGP(DBSCTEST, LOGL_NOTICE, "OML/RSL message received.\n");
return 0;

View File

@ -77,7 +77,7 @@ static void sign_link_down(struct e1inp_line *line)
e1inp_sign_link_destroy(rsl_sign_link);
}
static int sign_link(struct msgb *msg, struct e1inp_sign_link *link)
static int sign_link(struct msgb *msg)
{
LOGP(DBTSTEST, LOGL_NOTICE, "OML/RSL message received.\n");
return 0;