MNCC: move cc_tx_to_mncc() from gsm_data.h into mncc.c

This commit is contained in:
Harald Welte 2010-12-23 00:13:47 +01:00
parent 31bbbf4e52
commit fea236e27c
3 changed files with 6 additions and 6 deletions

View File

@ -848,10 +848,4 @@ int gsm_bts_model_register(struct gsm_bts_model *model);
struct gsm_subscriber_connection *subscr_con_allocate(struct gsm_lchan *lchan);
void subscr_con_free(struct gsm_subscriber_connection *conn);
/* FIXME: this should go some other header file, but there is no good one */
static inline void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg)
{
msgb_enqueue(&net->upqueue, msg);
}
#endif

View File

@ -157,5 +157,6 @@ struct gsm_data_frame {
char *get_mncc_name(int value);
int int_mncc_recv(struct gsm_network *net, int msg_type, void *arg);
void mncc_set_cause(struct gsm_mncc *data, int loc, int val);
void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg);
#endif

View File

@ -107,3 +107,8 @@ void mncc_set_cause(struct gsm_mncc *data, int loc, int val)
data->cause.location = loc;
data->cause.value = val;
}
void cc_tx_to_mncc(struct gsm_network *net, struct msgb *msg)
{
msgb_enqueue(&net->upqueue, msg);
}