Export the gsm0411 alloc and send function
This commit is contained in:
parent
5e76ce61ac
commit
a553d098e7
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue