diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-05-10 12:50:31 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-29 13:15:35 +0200 |
commit | 2635aa6cbd19d28b528350ce1829f05669538900 (patch) | |
tree | 97e60aad4c4060298b06542fff1ef1df75a90bc8 /openbsc/include | |
parent | 7c5b0cdb79fa88b62c2188ffb666ec451962127b (diff) |
move to libxsc: factor out gen of USSD notify and release complete -- TODO subscr_conn
Both libmsc and libbsc need distinct gsm0480_send_ussdNotify() and
gsm0480_send_releaseComplete() functions to account for the distinct subscriber
connection structs.
The current functions live in libmsc, so add the same in libbsc in new file
gsm_04_80_utils.c.
To avoid too much code dup, move the message generation part of
gsm0480_send_ussdNotify() and gsm0480_send_releaseComplete() to new functions
gsm0480_gen_ussdNotify() and gsm0480_gen_releaseComplete(), placed in libxsc.
Change-Id: I33a84e3c28576ced91d2ea24103123431f551173
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/gsm_04_80.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/gsm_04_80.h b/openbsc/include/openbsc/gsm_04_80.h index 0a6065234..3682c8939 100644 --- a/openbsc/include/openbsc/gsm_04_80.h +++ b/openbsc/include/openbsc/gsm_04_80.h @@ -14,7 +14,16 @@ int gsm0480_send_ussd_reject(struct gsm_subscriber_connection *conn, const struct msgb *msg, const struct ussd_request *request); -int gsm0480_send_ussdNotify(struct gsm_subscriber_connection *conn, int level, const char *text); -int gsm0480_send_releaseComplete(struct gsm_subscriber_connection *conn); +struct msgb *gsm0480_gen_ussdNotify(int level, const char *text); +struct msgb *gsm0480_gen_releaseComplete(void); + +int msc_gsm0480_send_ussdNotify(struct gsm_subscriber_connection *conn, + int level, const char *text); +int msc_gsm0480_send_releaseComplete(struct gsm_subscriber_connection *conn); + +/* TODO: move to a bsc_*.h file? */ +int bsc_gsm0480_send_ussdNotify(struct gsm_subscriber_connection *conn, + int level, const char *text); +int bsc_gsm0480_send_releaseComplete(struct gsm_subscriber_connection *conn); #endif |