#ifndef __UQMI_H
#define __UQMI_H
+#include <stdbool.h>
+
#include <libubox/uloop.h>
#include <libubox/ustream.h>
+
#include "qmi-message.h"
#ifdef DEBUG_PACKET
uint32_t service_connected;
uint32_t service_keep_cid;
+ uint32_t service_release_cid;
uint8_t ctl_tid;
};
bool *complete;
bool pending;
+ bool no_error_cb;
uint8_t service;
uint16_t tid;
int ret;
};
+extern bool cancel_all_requests;
int qmi_device_open(struct qmi_dev *qmi, const char *path);
void qmi_device_close(struct qmi_dev *qmi);
int qmi_service_connect(struct qmi_dev *qmi, QmiService svc, int client_id);
int qmi_service_get_client_id(struct qmi_dev *qmi, QmiService svc);
+int qmi_service_release_client_id(struct qmi_dev *qmi, QmiService svc);
QmiService qmi_service_get_by_name(const char *str);
+const char *qmi_get_error_str(int code);
#endif