Content-Type: multipart/mixed; boundary="===============8317024777516060323==" MIME-Version: 1.0 From: Andrew Zaborowski Subject: [PATCH 2/9] frame-xchg: Add frame_xchg_start Date: Thu, 19 Mar 2020 22:12:11 +0100 Message-ID: <20200319211218.32083-2-andrew.zaborowski@intel.com> In-Reply-To: <20200319211218.32083-1-andrew.zaborowski@intel.com> List-Id: To: iwd@lists.01.org --===============8317024777516060323== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable --- src/frame-xchg.c | 13 +++++++++++++ src/frame-xchg.h | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/src/frame-xchg.c b/src/frame-xchg.c index a5a80ca2..827d36e0 100644 --- a/src/frame-xchg.c +++ b/src/frame-xchg.c @@ -1070,6 +1070,19 @@ static bool frame_xchg_match(const void *a, const vo= id *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 fre= q, 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 93d528ae..45b0e5fa 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, u= int16_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 fre= q, unsigned int retry_interval, unsigned int resp_timeout, unsigned int retries_on_ack, uint32_t group_id, -- = 2.20.1 --===============8317024777516060323==--