mbim.h 935 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef _MBIM_H__
  15. #define _MBIM_H__
  16. #include <stdint.h>
  17. #include <sys/types.h>
  18. extern int return_code;
  19. extern int verbose;
  20. #include "mbim-type.h"
  21. #include "mbim-enum.h"
  22. #include "mbim-enums.h"
  23. #include "mbim-msg.h"
  24. #include "mbim-cid.h"
  25. #include "mbim-dev.h"
  26. struct mbim_handler {
  27. char *name;
  28. int argc;
  29. _mbim_cmd_request request;
  30. _mbim_cmd_response response;
  31. };
  32. extern struct mbim_handler *current_handler;
  33. #endif