aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-04 09:13:28 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-04 10:02:01 +0200
commit0d39dc92b5cfe6e8be9b2a68eaf50c94cae97355 (patch)
treecda4f19e8ce5a54b497d5f08ed1896c389af28e5
parent1f33294b1c1394c6ff0dd109ff10bb65886c1a44 (diff)
l1if: Add missing function prototypes
A few prototypes are not part of any header files, leading to corresponding compiler warnings. This commit adds the missing prototypes to sysmo_l1_if.h. Addresses: sysmo_l1_if.c:347:2: warning: implicit declaration of function ‘l1if_transport_open’ sysmo_l1_if.c:364:3: warning: implicit declaration of function ‘l1if_transport_close’ sysmo_l1_fwd.c:89:3: warning: implicit declaration of function ‘l1if_handle_sysprim’ sysmo_l1_fwd.c:91:3: warning: implicit declaration of function ‘l1if_handle_l1prim’ sysmo_l1_hw.c:109:3: warning: implicit declaration of function ‘l1if_handle_sysprim’ sysmo_l1_hw.c:118:3: warning: implicit declaration of function ‘l1if_handle_l1prim’ Sponsored-by: On-Waves ehf
-rw-r--r--src/sysmo_l1_if.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sysmo_l1_if.h b/src/sysmo_l1_if.h
index 49bbb62..6b50d4e 100644
--- a/src/sysmo_l1_if.h
+++ b/src/sysmo_l1_if.h
@@ -73,9 +73,19 @@ struct msgb *sysp_msgb_alloc(void);
uint32_t l1if_lchan_to_hLayer2(struct gsm_lchan *lchan);
struct gsm_lchan *l1if_hLayer2_to_lchan(struct gsm_bts_trx *trx, uint32_t hLayer2);
+int l1if_handle_sysprim(struct femtol1_hdl *fl1h, struct msgb *msg);
+int l1if_handle_l1prim(int wq, struct femtol1_hdl *fl1h, struct msgb *msg);
+
/* tch.c */
int l1if_tch_rx(struct gsm_lchan *lchan, struct msgb *l1p_msg);
int l1if_tch_fill(struct gsm_lchan *lchan, uint8_t *l1_buffer);
struct msgb *gen_empty_tch_msg(struct gsm_lchan *lchan);
+/*
+ * The implementation of these functions is selected by either compiling and
+ * linking sysmo_l1_hw.c or sysmo_l1_fwd.c
+ */
+int l1if_transport_open(int q, struct femtol1_hdl *hdl);
+int l1if_transport_close(int q, struct femtol1_hdl *hdl);
+
#endif /* _SYSMO_L1_IF_H */