diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-05-10 12:50:31 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-11-12 15:48:47 +0100 |
commit | 624e2bbb684531c02f549b381f7849b53a64172d (patch) | |
tree | b4681f78bfdbe835f7f79320670cff0ba222f20e /openbsc/include/openbsc/gsm_04_80.h | |
parent | b8061adb9253611d09b63fd7f2d4229e893cc910 (diff) |
move to libxsc: factor out gen of USSD notify and release complete
Both libmsc and libbsc will need distinct gsm0480_send_ussdNotify() and
gsm0480_send_releaseComplete() functions, since there will be 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/openbsc/gsm_04_80.h')
-rw-r--r-- | openbsc/include/openbsc/gsm_04_80.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/gsm_04_80.h b/openbsc/include/openbsc/gsm_04_80.h index 0a6065234..7f46895d5 100644 --- a/openbsc/include/openbsc/gsm_04_80.h +++ b/openbsc/include/openbsc/gsm_04_80.h @@ -14,7 +14,15 @@ 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); + +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 |