From 34e97495a600cb5c724e68248d059e0c83e88d82 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 10 Aug 2009 07:54:02 +0200 Subject: [PATCH] misc: Add prototypes to header files, include more header files Fix various warnings about implicit declarations of functions. --- openbsc/include/openbsc/abis_rsl.h | 1 + openbsc/include/openbsc/db.h | 1 + openbsc/include/openbsc/e1_input.h | 2 ++ openbsc/include/openbsc/gsm_04_11.h | 5 ++++- openbsc/include/openbsc/ipaccess.h | 2 ++ openbsc/include/openbsc/misdn.h | 1 + openbsc/src/db.c | 1 + openbsc/src/e1_config.c | 1 + openbsc/src/e1_input.c | 1 + openbsc/src/gsm_04_11.c | 1 + openbsc/src/transaction.c | 2 ++ openbsc/src/vty_interface.c | 1 + 12 files changed, 18 insertions(+), 1 deletion(-) diff --git a/openbsc/include/openbsc/abis_rsl.h b/openbsc/include/openbsc/abis_rsl.h index a8734d1bf..49dd7731c 100644 --- a/openbsc/include/openbsc/abis_rsl.h +++ b/openbsc/include/openbsc/abis_rsl.h @@ -492,6 +492,7 @@ unsigned int get_paging_group(u_int64_t imsi, unsigned int bs_cc_chans, unsigned int n_pag_blocks(int bs_ccch_sdcch_comb, unsigned int bs_ag_blks_res); u_int64_t str_to_imsi(const char *imsi_str); u_int8_t lchan2chan_nr(struct gsm_lchan *lchan); +int rsl_release_request(struct gsm_lchan *lchan, u_int8_t link_id); /* to be provided by external code */ int abis_rsl_sendmsg(struct msgb *msg); diff --git a/openbsc/include/openbsc/db.h b/openbsc/include/openbsc/db.h index eef42f6fb..d7547d601 100644 --- a/openbsc/include/openbsc/db.h +++ b/openbsc/include/openbsc/db.h @@ -39,6 +39,7 @@ struct gsm_subscriber* db_get_subscriber(struct gsm_network *net, int db_sync_subscriber(struct gsm_subscriber* subscriber); int db_subscriber_alloc_tmsi(struct gsm_subscriber* subscriber); int db_subscriber_assoc_imei(struct gsm_subscriber* subscriber, char *imei); +int db_sync_equipment(struct gsm_equipment *equip); /* SMS store-and-forward */ int db_sms_store(struct gsm_sms *sms); diff --git a/openbsc/include/openbsc/e1_input.h b/openbsc/include/openbsc/e1_input.h index 1e8da56fe..64e0b4f7d 100644 --- a/openbsc/include/openbsc/e1_input.h +++ b/openbsc/include/openbsc/e1_input.h @@ -151,6 +151,8 @@ void e1_set_pcap_fd(int fd); /* called by TRAU muxer to obtain the destination mux entity */ struct subch_mux *e1inp_get_mux(u_int8_t e1_nr, u_int8_t ts_nr); +void e1inp_sign_link_destroy(struct e1inp_sign_link *link); +int e1inp_line_update(struct e1inp_line *line); /* e1_config.c */ int e1_reconfig_ts(struct gsm_bts_trx_ts *ts); diff --git a/openbsc/include/openbsc/gsm_04_11.h b/openbsc/include/openbsc/gsm_04_11.h index e78d94696..dd6a2631f 100644 --- a/openbsc/include/openbsc/gsm_04_11.h +++ b/openbsc/include/openbsc/gsm_04_11.h @@ -205,6 +205,9 @@ struct msgb; int gsm0411_rcv_sms(struct msgb *msg); -int gsm0411_send_sms(struct gsm_lchan *lchan, struct sms_deliver *sms); +int gsm411_send_sms_lchan(struct gsm_lchan *lchan, struct gsm_sms *sms); + +struct gsm_sms *sms_alloc(void); +void sms_free(struct gsm_sms *sms); #endif diff --git a/openbsc/include/openbsc/ipaccess.h b/openbsc/include/openbsc/ipaccess.h index d6ded3551..44c330133 100644 --- a/openbsc/include/openbsc/ipaccess.h +++ b/openbsc/include/openbsc/ipaccess.h @@ -34,4 +34,6 @@ enum ipaccess_id_tags { IPAC_IDTAG_UNIT = 0x08, }; +int ipaccess_connect(struct e1inp_line *line, struct sockaddr_in *sa); + #endif /* _IPACCESS_H */ diff --git a/openbsc/include/openbsc/misdn.h b/openbsc/include/openbsc/misdn.h index d3631e794..6c38de752 100644 --- a/openbsc/include/openbsc/misdn.h +++ b/openbsc/include/openbsc/misdn.h @@ -24,5 +24,6 @@ int mi_setup(int cardnr, struct e1inp_line *line, int release_l2); int _abis_nm_sendmsg(struct msgb *msg); +int mi_e1_line_update(struct e1inp_line *line); #endif diff --git a/openbsc/src/db.c b/openbsc/src/db.c index 51f94b654..0bb86feff 100644 --- a/openbsc/src/db.c +++ b/openbsc/src/db.c @@ -21,6 +21,7 @@ */ #include +#include #include #include diff --git a/openbsc/src/e1_config.c b/openbsc/src/e1_config.c index e7431327b..4a1cbb059 100644 --- a/openbsc/src/e1_config.c +++ b/openbsc/src/e1_config.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #define SAPI_L2ML 0 diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c index 4bc15e5f7..b6461df7c 100644 --- a/openbsc/src/e1_input.c +++ b/openbsc/src/e1_input.c @@ -52,6 +52,7 @@ #include #include #include +#include #define NUM_E1_TS 32 diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 3f93ffbc9..f31e3f84f 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c @@ -46,6 +46,7 @@ #include #include #include +#include #define GSM411_ALLOC_SIZE 1024 #define GSM411_ALLOC_HEADROOM 128 diff --git a/openbsc/src/transaction.c b/openbsc/src/transaction.c index 9e7c7948f..3825de119 100644 --- a/openbsc/src/transaction.c +++ b/openbsc/src/transaction.c @@ -31,6 +31,8 @@ static void *tall_trans_ctx; +void _gsm48_cc_trans_free(struct gsm_trans *trans); + struct gsm_trans *trans_find_by_id(struct gsm_subscriber *subscr, u_int8_t proto, u_int8_t trans_id) { diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index 05b0070a1..1fe65df66 100644 --- a/openbsc/src/vty_interface.c +++ b/openbsc/src/vty_interface.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include