cmake_minimum_required(VERSION 2.6)
PROJECT(uqmi C)
-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unused)
+ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
DEPENDS ./data/gen-code.pl ./data/qmi-service-${service}.json ./data/gen-common.pm
)
SET(service_sources ${service_sources} qmi-message-${service}.c)
+ set_property(SOURCE qmi-message-${service}.c PROPERTY COMPILE_FLAGS "-Wno-unused")
ENDFOREACH()
ADD_CUSTOM_COMMAND(
static void decode_udh(const unsigned char *data)
{
- const unsigned char *start = data;
const unsigned char *end;
unsigned int type, len;
static void decode_7bit_field(char *name, const unsigned char *data, int data_len, bool udh)
{
- bool multipart = false;
const unsigned char *udh_start;
char *dest;
int pos_offset = 0;
struct qmi_wms_raw_read_response res;
unsigned char *data, *end;
char *str;
- int i, cur_len;
+ int cur_len;
bool sent;
unsigned char first, dcs;
{
struct qmi_wms_raw_read_response res;
unsigned char *data;
- int i, len = 0;
char *str;
+ int i;
qmi_parse_wms_raw_read_response(msg, &res);
data = (unsigned char *) res.data.raw_message_data.raw_data;
int ofs = 0;
while(1) {
- unsigned char mask;
-
c = *(str++) & 0x7f;
if (!c)
break;
unsigned char first_octet = 0x11;
unsigned char protocol_id = 0x00;
unsigned char dcs = 0x00;
- char *str;
- int i;
if (!send.smsc || !*send.smsc || !send.target || !*send.target) {
blobmsg_add_string(&status, "error", "Missing argument");
{
void *tlv_buf;
int tlv_len;
- int ret;
if (!req->pending)
return;
struct qmi_msg *msg;
char *buf;
int len, msg_len;
- int i;
while (1) {
buf = ustream_get_read_buf(us, &len);
{
int len = qmi_complete_request_message(msg);
uint16_t tid;
- int ret;
- int i;
memset(req, 0, sizeof(*req));
req->ret = -1;
void qmi_device_close(struct qmi_dev *qmi)
{
struct qmi_request *req;
- int idx;
qmi_close_all_services(qmi);
ustream_free(&qmi->sf.stream);