aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/msc/gsm_04_80.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-06-12 08:03:53 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-06-12 23:31:34 +0700
commit5df4e4ddde86c1ca2528a6749c071d24925e9136 (patch)
tree4e979dd00b9cac8abe2fd459fd11deb6f35a0c60 /include/osmocom/msc/gsm_04_80.h
parent9aec25e464865573acc7ccde92f471a1af799cd6 (diff)
libmsc/gsm_04_80.c: make the API abstract from ss_request struct
There is no need to pass a pointer to a ss_request struct when calling the gsm0480_send_ussd_* functions, because they only use both transaction ID and InvokeID from there, which may be passed directly. This change allows one to use this API without parsing the whole GSM 04.80 message, or when parsing is failed. Moreover, if InvokeID is not available, one can pass any incorrect, (e.g. negative) value, so the universal NULL tag will be used. Finally, setting a TI flag is also up to the caller. Change-Id: I13d5abbfdcf8238ebaf0566c420f09cd9255b648
Diffstat (limited to 'include/osmocom/msc/gsm_04_80.h')
-rw-r--r--include/osmocom/msc/gsm_04_80.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/osmocom/msc/gsm_04_80.h b/include/osmocom/msc/gsm_04_80.h
index fb057c8db..7d630888f 100644
--- a/include/osmocom/msc/gsm_04_80.h
+++ b/include/osmocom/msc/gsm_04_80.h
@@ -7,14 +7,14 @@
struct gsm_subscriber_connection;
int gsm0480_send_ussd_response(struct gsm_subscriber_connection *conn,
- const char* response_text,
- const struct ss_request *req);
+ uint8_t transaction_id, uint8_t invoke_id,
+ const char *response_text);
int gsm0480_send_ussd_return_error(struct gsm_subscriber_connection *conn,
- const struct ss_request *req,
+ uint8_t transaction_id, uint8_t invoke_id,
uint8_t error_code);
int gsm0480_send_ussd_reject(struct gsm_subscriber_connection *conn,
- const struct ss_request *req,
- uint8_t error_tag, uint8_t error_code);
+ uint8_t transaction_id, int invoke_id,
+ uint8_t problem_tag, uint8_t problem_code);
int msc_send_ussd_notify(struct gsm_subscriber_connection *conn, int level,
const char *text);