manufacture.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /******************************************************************
  2. *
  3. * uEcho for C
  4. *
  5. * Copyright (C) Satoshi Konno 2015
  6. *
  7. * This is licensed under BSD-style license, see file COPYING.
  8. *
  9. ******************************************************************/
  10. #ifndef _UECHO_MANUFACTURE_H_
  11. #define _UECHO_MANUFACTURE_H_
  12. #include <uecho/typedef.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /****************************************
  17. * Data Type
  18. ****************************************/
  19. typedef int uEchoManufactureCode;
  20. #if !defined(_UECHO_MANUFACTURE_INTERNAL_H_)
  21. typedef void uEchoManufacture;
  22. #endif
  23. /****************************************
  24. * Function (Manufacture)
  25. ****************************************/
  26. uEchoManufacture* uecho_manufacture_new(void);
  27. bool uecho_manufacture_delete(uEchoManufacture* man);
  28. uEchoManufacture* uecho_manufacture_next(uEchoManufacture* man);
  29. void uecho_manufacture_setcode(uEchoManufacture* man, uEchoManufactureCode code);
  30. uEchoManufactureCode uecho_manufacture_getcode(uEchoManufacture* man);
  31. bool uecho_manufacture_iscode(uEchoManufacture* man, uEchoManufactureCode code);
  32. void uecho_manufacture_setname(uEchoManufacture* man, const char* name);
  33. const char* uecho_manufacture_getname(uEchoManufacture* man);
  34. #ifdef __cplusplus
  35. } /* extern C */
  36. #endif
  37. #endif /* _UECHO_MANUFACTURE_H_ */