🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.0 KiB

  1. #ifndef ALCONFIG_H
  2. #define ALCONFIG_H
  3. #ifdef __cplusplus
  4. #define NOEXCEPT noexcept
  5. extern "C" {
  6. #else
  7. #define NOEXCEPT
  8. #endif
  9. void ReadALConfig(void) NOEXCEPT;
  10. int ConfigValueExists(const char *devName, const char *blockName, const char *keyName);
  11. const char *GetConfigValue(const char *devName, const char *blockName, const char *keyName, const char *def);
  12. int GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, int def);
  13. int ConfigValueStr(const char *devName, const char *blockName, const char *keyName, const char **ret);
  14. int ConfigValueInt(const char *devName, const char *blockName, const char *keyName, int *ret);
  15. int ConfigValueUInt(const char *devName, const char *blockName, const char *keyName, unsigned int *ret);
  16. int ConfigValueFloat(const char *devName, const char *blockName, const char *keyName, float *ret);
  17. int ConfigValueBool(const char *devName, const char *blockName, const char *keyName, int *ret);
  18. #ifdef __cplusplus
  19. } // extern "C"
  20. #endif
  21. #endif /* ALCONFIG_H */