diff options
author | Mihails Prihodko <mihails.prihodko@zabbix.com> | 2022-05-09 16:30:02 +0300 |
---|---|---|
committer | Mihails Prihodko <mihails.prihodko@zabbix.com> | 2022-05-09 16:30:02 +0300 |
commit | c50d5eba96a22d873f486889be1ab6f26a1423eb (patch) | |
tree | c127125d9dd757362e6afa69769518643366b3d1 /include | |
parent | 5e94eeed5e163c4291da66479924f5e219a74a6b (diff) |
........S. [ZBX-20743] implemented extension error codes
Diffstat (limited to 'include')
-rw-r--r-- | include/zbxdb.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/zbxdb.h b/include/zbxdb.h index c72d0d2bba1..d1c307ce863 100644 --- a/include/zbxdb.h +++ b/include/zbxdb.h @@ -214,6 +214,19 @@ typedef enum } zbx_db_version_status_t; +typedef enum +{ /* db extension error codes shared with FRONTEND */ + ZBX_EXT_ERR_UNDEFINED = 0, + ZBX_EXT_SUCCEED = 1, + ZBX_TIMESCALEDB_POSTGRES_TOO_OLD, + ZBX_TIMESCALEDB_VERSION_FAILED_TO_RETRIEVE, + ZBX_TIMESCALEDB_VERSION_LOWER_THAN_MINIMUM, + ZBX_TIMESCALEDB_VERSION_NOT_SUPPORTED, + ZBX_TIMESCALEDB_VERSION_HIGHER_THAN_MAXIMUM, + ZBX_TIMESCALEDB_LICENSE_NOT_COMMUNITY, +} +zbx_db_ext_err_code_t; + zbx_uint32_t zbx_dbms_version_get(void); struct zbx_db_version_info_t @@ -254,6 +267,7 @@ struct zbx_db_version_info_t char *ext_lic; zbx_uint32_t ext_status; + zbx_db_ext_err_code_t ext_err_code; }; void zbx_dbms_version_info_extract(struct zbx_db_version_info_t *version_info); |