stub_analytics_plugin  1.6
Network Optix Video Analytics SDK
ini_config_c.h
Go to the documentation of this file.
1 #pragma once
2 
53 #if !defined(__cplusplus)
54  #include <stdbool.h>
55 #endif // !defined(__cplusplus)
56 
57 #if defined(__cplusplus)
58  extern "C" {
59 #endif
60 
61 #define NX_INI_FLAG(DEFAULT, PARAM, DESCR) bool PARAM
62 #define NX_INI_INT(DEFAULT, PARAM, DESCR) int PARAM
63 #define NX_INI_STRING(DEFAULT, PARAM, DESCR) const char* PARAM
64 #define NX_INI_FLOAT(DEFAULT, PARAM, DESCR) float PARAM
65 #define NX_INI_DOUBLE(DEFAULT, PARAM, DESCR) double PARAM
66 
67 struct Ini NX_INI_STRUCT; //< Ini struct definition: expands using the macros defined above.
68 
69 #undef NX_INI_FLAG
70 #undef NX_INI_INT
71 #undef NX_INI_STRING
72 #undef NX_INI_FLOAT
73 #undef NX_INI_DOUBLE
74 
75 enum NxIniOutput { NX_INI_OUTPUT_NONE, NX_INI_OUTPUT_STDOUT, NX_INI_OUTPUT_STDERR };
76 
77 #if !defined(NX_KIT_C_API)
78  #define NX_KIT_C_API
79 #endif
80 
81 NX_KIT_C_API extern struct Ini ini; //< Declaration of Ini instance global variable.
82 
83 // See the documentation of the respective methods of class IniConfig in "ini_config.h".
84 NX_KIT_C_API bool nx_ini_isEnabled(void);
85 NX_KIT_C_API void nx_ini_setOutput(enum NxIniOutput output);
86 NX_KIT_C_API void nx_ini_reload(void);
87 NX_KIT_C_API const char* nx_ini_iniFile(void);
88 NX_KIT_C_API void nx_ini_setIniFilesDir(const char* value);
89 NX_KIT_C_API const char* nx_ini_iniFilesDir(void);
90 NX_KIT_C_API const char* nx_ini_iniFilePath(void);
91 
92 #if defined(__cplusplus)
93  } // extern "C"
94 #endif