summaryrefslogtreecommitdiff
path: root/include/gsmd/sms.h
blob: 2519dafa0fda5da9cfbbc8577c82f6d60c7b857c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __GSMD_SMS_H
#define __GSMD_SMS_H

#ifdef __GSMD__

#include <gsmd/gsmd.h>

int sms_cb_init(struct gsmd *gsmd);
int sms_cb_network_init(struct gsmd *gsmd);

#define SMS_MAX_PDU_SIZE	180
#define CBM_MAX_PDU_SIZE	88
#define CBM_MAX_PDU_PAGES	15
int sms_pdu_make_smssubmit(char *dest, const struct gsmd_sms_submit *src);
int sms_pdu_to_msg(struct gsmd_sms_list *dst, const u_int8_t *src,
		int pdulen, int len);
int cbs_pdu_to_msg(struct gsmd_cbm *dst, u_int8_t *src, int pdulen, int len);

int usock_rcv_sms(struct gsmd_user *gu, struct gsmd_msg_hdr *gph, int len);
int usock_rcv_cb(struct gsmd_user *gu, struct gsmd_msg_hdr *gph, int len);
int sms_pdu_decode_dcs(struct gsmd_sms_datacodingscheme *dcs,
		const u_int8_t *data);
#endif /* __GSMD__ */

#endif
personal git repositories of Harald Welte. Your mileage may vary