blob: ae92c1f96425550ec0586921575eef23dfed6c84 [file] [log] [blame]
Holger Hans Peter Freyther55aea502010-09-30 18:30:41 +08001#ifndef gsm0480_h
2#define gsm0480_h
3
4#include "msgb.h"
5
Holger Hans Peter Freyther00cb5702010-10-09 01:47:15 +08006#define MAX_LEN_USSD_STRING 31
7
8struct ussd_request {
9 char text[MAX_LEN_USSD_STRING + 1];
10 uint8_t transaction_id;
11 uint8_t invoke_id;
12};
13
14int gsm0480_decode_ussd_request(const struct msgb *msg,
15 struct ussd_request *request);
16
Holger Hans Peter Freyther55aea502010-09-30 18:30:41 +080017struct msgb *gsm0480_create_unstructuredSS_Notify(int alertPattern, const char *text);
18struct msgb *gsm0480_create_notifySS(const char *text);
19
20int gsm0480_wrap_invoke(struct msgb *msg, int op, int link_id);
21int gsm0480_wrap_facility(struct msgb *msg);
22
23#endif