osmux: Introduce API osmux_xfrm_input_get_deliver_cb_data()

This API allows retrieving back the private pointer set previously by
osmux_xfrm_input_set_deliver_cb().

Change-Id: I95433b18802f73fa70e758f4aa02128eee940d88
This commit is contained in:
Pau Espin 2022-10-03 17:21:06 +02:00
parent 6fe1f35001
commit f10f354e3f
2 changed files with 6 additions and 0 deletions

View File

@ -110,6 +110,7 @@ int osmux_xfrm_input_set_batch_factor(struct osmux_in_handle *h, uint8_t batch_f
void osmux_xfrm_input_set_batch_size(struct osmux_in_handle *h, uint16_t batch_size);
void osmux_xfrm_input_set_initial_seqnum(struct osmux_in_handle *h, uint8_t osmux_seqnum);
void osmux_xfrm_input_set_deliver_cb(struct osmux_in_handle *h, void (*deliver_cb)(struct msgb *msg, void *data), void *data);
void *osmux_xfrm_input_get_deliver_cb_data(struct osmux_in_handle *h);
int osmux_xfrm_input_open_circuit(struct osmux_in_handle *h, int ccid, int dummy);
void osmux_xfrm_input_close_circuit(struct osmux_in_handle *h, int ccid);

View File

@ -686,6 +686,11 @@ void osmux_xfrm_input_set_deliver_cb(struct osmux_in_handle *h,
h->data = data;
}
void *osmux_xfrm_input_get_deliver_cb_data(struct osmux_in_handle *h)
{
return h->data;
}
int osmux_xfrm_input_open_circuit(struct osmux_in_handle *h, int ccid,
int dummy)
{