summaryrefslogtreecommitdiff
path: root/storage/ndb/src/mgmsrv/ParamInfo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/ndb/src/mgmsrv/ParamInfo.hpp')
-rw-r--r--storage/ndb/src/mgmsrv/ParamInfo.hpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/storage/ndb/src/mgmsrv/ParamInfo.hpp b/storage/ndb/src/mgmsrv/ParamInfo.hpp
new file mode 100644
index 00000000000..7d12cd6252f
--- /dev/null
+++ b/storage/ndb/src/mgmsrv/ParamInfo.hpp
@@ -0,0 +1,44 @@
+#ifndef PARAMINFO_H
+#define PARAMINFO_H
+
+#define DB_TOKEN "DB"
+#define MGM_TOKEN "MGM"
+#define API_TOKEN "API"
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * The Configuration parameter type and status
+ */
+
+enum ParameterType { CI_BOOL, CI_INT, CI_INT64, CI_STRING, CI_SECTION };
+enum ParameterStatus { CI_USED, ///< Active
+ CI_DEPRICATED, ///< Can be, but shouldn't
+ CI_NOTIMPLEMENTED, ///< Is ignored.
+ CI_INTERNAL ///< Not configurable by the user
+};
+
+/**
+ * Entry for one configuration parameter
+ */
+typedef struct m_ParamInfo {
+ Uint32 _paramId;
+ const char* _fname;
+ const char* _section;
+ const char* _description;
+ ParameterStatus _status;
+ bool _updateable;
+ ParameterType _type;
+ const char* _default;
+ const char* _min;
+ const char* _max;
+}ParamInfo;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif