add radio_state set/query support
[project/umbim.git] / mbim.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_H__
16 #define _MBIM_H__
17
18 #include <stdint.h>
19 #include <sys/types.h>
20
21 extern int return_code;
22 extern int verbose;
23
24 #include "mbim-type.h"
25 #include "mbim-enum.h"
26 #include "mbim-enums.h"
27 #include "mbim-msg.h"
28 #include "mbim-cid.h"
29 #include "mbim-dev.h"
30
31 struct mbim_handler {
32         char *name;
33         int argc;
34
35         _mbim_cmd_request request;
36         _mbim_cmd_response response;
37 };
38 extern struct mbim_handler *current_handler;
39
40 #endif