bsc: Make the write method public it will be used by other modules
This commit is contained in:
parent
5832b3e108
commit
6098038968
|
@ -51,5 +51,6 @@ struct osmo_msc_data {
|
||||||
};
|
};
|
||||||
|
|
||||||
int osmo_bsc_msc_init(struct gsm_network *network);
|
int osmo_bsc_msc_init(struct gsm_network *network);
|
||||||
|
int msc_queue_write(struct bsc_msc_connection *conn, struct msgb *msg, int proto);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
static int msc_queue_write(struct bsc_msc_connection *conn, struct msgb *msg, int proto);
|
|
||||||
static void initialize_if_needed(struct bsc_msc_connection *conn);
|
static void initialize_if_needed(struct bsc_msc_connection *conn);
|
||||||
static void send_id_get_response(struct osmo_msc_data *data, int fd);
|
static void send_id_get_response(struct osmo_msc_data *data, int fd);
|
||||||
static void send_ping(struct osmo_msc_data *data);
|
static void send_ping(struct osmo_msc_data *data);
|
||||||
|
@ -163,7 +162,7 @@ static int mgcp_create_port(struct osmo_msc_data *data)
|
||||||
/*
|
/*
|
||||||
* Send data to the network
|
* Send data to the network
|
||||||
*/
|
*/
|
||||||
static int msc_queue_write(struct bsc_msc_connection *conn, struct msgb *msg, int proto)
|
int msc_queue_write(struct bsc_msc_connection *conn, struct msgb *msg, int proto)
|
||||||
{
|
{
|
||||||
ipaccess_prepend_header(msg, proto);
|
ipaccess_prepend_header(msg, proto);
|
||||||
if (write_queue_enqueue(&conn->write_queue, msg) != 0) {
|
if (write_queue_enqueue(&conn->write_queue, msg) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue