Holger Hans Peter Freyther | 55aea50 | 2010-09-30 18:30:41 +0800 | [diff] [blame] | 1 | #ifndef gsm0480_h |
| 2 | #define gsm0480_h |
| 3 | |
| 4 | #include "msgb.h" |
| 5 | |
Holger Hans Peter Freyther | 00cb570 | 2010-10-09 01:47:15 +0800 | [diff] [blame^] | 6 | #define MAX_LEN_USSD_STRING 31 |
| 7 | |
| 8 | struct ussd_request { |
| 9 | char text[MAX_LEN_USSD_STRING + 1]; |
| 10 | uint8_t transaction_id; |
| 11 | uint8_t invoke_id; |
| 12 | }; |
| 13 | |
| 14 | int gsm0480_decode_ussd_request(const struct msgb *msg, |
| 15 | struct ussd_request *request); |
| 16 | |
Holger Hans Peter Freyther | 55aea50 | 2010-09-30 18:30:41 +0800 | [diff] [blame] | 17 | struct msgb *gsm0480_create_unstructuredSS_Notify(int alertPattern, const char *text); |
| 18 | struct msgb *gsm0480_create_notifySS(const char *text); |
| 19 | |
| 20 | int gsm0480_wrap_invoke(struct msgb *msg, int op, int link_id); |
| 21 | int gsm0480_wrap_facility(struct msgb *msg); |
| 22 | |
| 23 | #endif |