summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-07-06 16:40:01 +0200
committerIvan Kluchnikov <kluchnikovi@gmail.com>2015-08-20 19:17:07 +0300
commit78de2aea7b28063be19ea6a523a834741f898668 (patch)
treee9b1698abbbe499d46b7e45462ccb792eaec2a52
parentdc6da14be3ae9f244218a2bd2a397082a3100807 (diff)
sms: Put the try_deliver into the header file
Even if it is using BSC/NITB types let's put it in the header file than just declaring it at a place that could bitrot in a way that doesn't lead a warning.
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c2
-rw-r--r--openbsc/src/libmsc/smpp_smsc.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 0150de6..82e9fae 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -57,8 +57,6 @@
#ifdef BUILD_SMPP
#include "smpp_smsc.h"
-extern int smpp_try_deliver(struct gsm_sms *sms,
- struct gsm_subscriber_connection *conn);
#endif
void *tall_gsms_ctx;
diff --git a/openbsc/src/libmsc/smpp_smsc.h b/openbsc/src/libmsc/smpp_smsc.h
index 21d28dd..8d31b2b 100644
--- a/openbsc/src/libmsc/smpp_smsc.h
+++ b/openbsc/src/libmsc/smpp_smsc.h
@@ -131,4 +131,12 @@ int smpp_route_pfx_del(struct osmo_smpp_acl *acl,
int smpp_vty_init(void);
int smpp_determine_scheme(uint8_t dcs, uint8_t *data_coding, int *mode);
+
+
+
+struct gsm_sms;
+struct gsm_subscriber_connection;
+
+int smpp_try_deliver(struct gsm_sms *sms,
+ struct gsm_subscriber_connection *conn);
#endif