Export the gsm0411 alloc and send function

This commit is contained in:
Holger Freyther 2009-01-04 20:16:25 +00:00
parent 5e76ce61ac
commit a553d098e7
2 changed files with 5 additions and 2 deletions

View File

@ -70,4 +70,7 @@ int gsm0411_rcv_sms(struct msgb *msg);
int gsm0411_send_sms(struct gsm_lchan *lchan, struct sms_deliver *sms);
struct msgb *gsm411_msgb_alloc(void);
int gsm0411_sendmsg(struct msgb *msg);
#endif

View File

@ -40,12 +40,12 @@
#define GSM411_ALLOC_SIZE 1024
#define GSM411_ALLOC_HEADROOM 128
static struct msgb *gsm411_msgb_alloc(void)
struct msgb *gsm411_msgb_alloc(void)
{
return msgb_alloc_headroom(GSM411_ALLOC_SIZE, GSM411_ALLOC_HEADROOM);
}
static int gsm0411_sendmsg(struct msgb *msg)
int gsm0411_sendmsg(struct msgb *msg)
{
if (msg->lchan)
msg->trx = msg->lchan->ts->trx;