diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-08-21 23:03:45 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-08-24 17:05:23 +0200 |
commit | 9d0fd073e91d25bf61c19089a0c4e0ee35457446 (patch) | |
tree | a635baa975e489ab561ba506280799bdebc91150 /src/osmo-bts-sysmo/l1_if.h | |
parent | 8e4cc1cbb8946b53c929caa2bd4bbf2fd30588a5 (diff) |
l1_if: pass private 'void *data' from call to callback
When enqueueing a command towards the L1, we can now pass along
a private data pointer, which then gets passed to the call-back
upon completion.
Diffstat (limited to 'src/osmo-bts-sysmo/l1_if.h')
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.h b/src/osmo-bts-sysmo/l1_if.h index 77144931..5efa25b4 100644 --- a/src/osmo-bts-sysmo/l1_if.h +++ b/src/osmo-bts-sysmo/l1_if.h @@ -87,13 +87,13 @@ struct femtol1_hdl { #define msgb_l1prim(msg) ((GsmL1_Prim_t *)(msg)->l1h) #define msgb_sysprim(msg) ((SuperFemto_Prim_t *)(msg)->l1h) -typedef int l1if_compl_cb(struct gsm_bts_trx *trx, struct msgb *l1_msg); +typedef int l1if_compl_cb(struct gsm_bts_trx *trx, struct msgb *l1_msg, void *data); /* send a request primitive to the L1 and schedule completion call-back */ int l1if_req_compl(struct femtol1_hdl *fl1h, struct msgb *msg, - l1if_compl_cb *cb); + l1if_compl_cb *cb, void *cb_data); int l1if_gsm_req_compl(struct femtol1_hdl *fl1h, struct msgb *msg, - l1if_compl_cb *cb); + l1if_compl_cb *cb, void *cb_data); struct femtol1_hdl *l1if_open(void *priv); int l1if_close(struct femtol1_hdl *hdl); |