version.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (C) 2019-2020 Alibaba Group Holding Limited
  3. */
  4. #ifndef AOS_VERSION_H
  5. #define AOS_VERSION_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. /**
  10. * Get aos product model.
  11. *
  12. * @return model success, 0 failure.
  13. */
  14. const char *aos_get_product_model(void);
  15. /**
  16. * Get aos os version.
  17. *
  18. * @return os version success, 0 failure.
  19. */
  20. char *aos_get_os_version(void);
  21. /**
  22. * Get aos app version.
  23. *
  24. * @return app version success, 0 failure.
  25. */
  26. char *aos_get_app_version(void);
  27. /**
  28. * Set aos app version.
  29. *
  30. * @return 0 success, otherwise failed.
  31. */
  32. int aos_set_app_version(const char *version);
  33. /**
  34. * Get aos changelog.
  35. *
  36. * @return changelog success, 0 failure.
  37. */
  38. char *aos_get_changelog(void);
  39. /**
  40. * Set aos changelog.
  41. *
  42. * @return 0 success, otherwise failed.
  43. */
  44. int aos_set_changelog(const char *changelog);
  45. /**
  46. * Get aos kernel version.
  47. *
  48. * @return kernel version success, 0 failure.
  49. */
  50. const char *aos_get_kernel_version(void);
  51. /**
  52. * Get aos device name.
  53. *
  54. * @return device name success, 0 failure.
  55. */
  56. const char *aos_get_device_name(void);
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif /* AOS_VERSION_H */