From: Alexander Couzens Date: Sun, 1 Oct 2023 16:48:19 +0000 (+0200) Subject: dev.c: add comment to qmi_request_wait() X-Git-Url: http://git.openwrt.org/?p=project%2Fuqmi.git;a=commitdiff_plain;h=8ff632a048bf72be64046dfdcb533f7745a1d237 dev.c: add comment to qmi_request_wait() Signed-off-by: Alexander Couzens --- diff --git a/dev.c b/dev.c index 031b0c0..ebfbbad 100644 --- a/dev.c +++ b/dev.c @@ -249,6 +249,12 @@ void qmi_request_cancel(struct qmi_dev *qmi, struct qmi_request *req) __qmi_request_complete(qmi, req, NULL); } +/*! Run uloop until the request has been completed + * + * \param qmi the qmi device + * \param req the request to wait for + * \return req->ret (0 on success) + */ int qmi_request_wait(struct qmi_dev *qmi, struct qmi_request *req) { bool complete = false;