aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Zaborowski <andrew.zaborowski@intel.com>2020-03-19 22:12:11 +0100
committerDenis Kenzior <denkenz@gmail.com>2020-03-20 10:15:50 -0500
commite7e597c8761c5043cf97cd9bfc97531ca58162c6 (patch)
treefa54fd4c5024804e714ce24cff3aef015c86411d
parente6de4b10ad95033408bec5b47297939eb8b7ade8 (diff)
downloadiwd-e7e597c8761c5043cf97cd9bfc97531ca58162c6.tar.gz
frame-xchg: Add frame_xchg_start
-rw-r--r--src/frame-xchg.c13
-rw-r--r--src/frame-xchg.h4
2 files changed, 17 insertions, 0 deletions
diff --git a/src/frame-xchg.c b/src/frame-xchg.c
index 26163e614..131d50619 100644
--- a/src/frame-xchg.c
+++ b/src/frame-xchg.c
@@ -1071,6 +1071,19 @@ static bool frame_xchg_match(const void *a, const void *b)
* @resp_timeout was 0. @frame is an iovec array terminated by an iovec
* struct with NULL-iov_base.
*/
+void frame_xchg_start(uint64_t wdev_id, struct iovec *frame, uint32_t freq,
+ unsigned int retry_interval, unsigned int resp_timeout,
+ unsigned int retries_on_ack, uint32_t group_id,
+ frame_xchg_cb_t cb, void *user_data, ...)
+{
+ va_list args;
+
+ va_start(args, user_data);
+ frame_xchg_startv(wdev_id, frame, freq, retry_interval, resp_timeout,
+ retries_on_ack, group_id, cb, user_data, args);
+ va_end(args);
+}
+
void frame_xchg_startv(uint64_t wdev_id, struct iovec *frame, uint32_t freq,
unsigned int retry_interval, unsigned int resp_timeout,
unsigned int retries_on_ack, uint32_t group_id,
diff --git a/src/frame-xchg.h b/src/frame-xchg.h
index 93d528aef..45b0e5faf 100644
--- a/src/frame-xchg.h
+++ b/src/frame-xchg.h
@@ -43,6 +43,10 @@ bool frame_watch_add(uint64_t wdev_id, uint32_t group, uint16_t frame_type,
bool frame_watch_group_remove(uint64_t wdev_id, uint32_t group);
bool frame_watch_wdev_remove(uint64_t wdev_id);
+void frame_xchg_start(uint64_t wdev_id, struct iovec *frame, uint32_t freq,
+ unsigned int retry_interval, unsigned int resp_timeout,
+ unsigned int retries_on_ack, uint32_t group_id,
+ frame_xchg_cb_t cb, void *user_data, ...);
void frame_xchg_startv(uint64_t wdev_id, struct iovec *frame, uint32_t freq,
unsigned int retry_interval, unsigned int resp_timeout,
unsigned int retries_on_ack, uint32_t group_id,