umbim: fix invalid mbim message string encoding
[project/umbim.git] / mbim-type.h
1 /*
2 * umbim
3 * Copyright (C) 2014 John Crispin <blogic@openwrt.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2
7 * as published by the Free Software Foundation
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15 #ifndef _MBIM_TYPE_H__
16 #define _MBIM_TYPE_H__
17
18 struct mbim_string {
19 uint32_t offset;
20 uint32_t length;
21 } __attribute__((packed));
22
23 struct mbim_enum {
24 uint32_t key;
25 char *skey;
26 char *val;
27 };
28
29 #endif