zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: zbx_config_get_hk_mode                                           *
 *                                                                            *
 * Purpose: get housekeeping mode for history and trends tables               *
 *                                                                            *
 * Parameters: history_mode - [OUT] history housekeeping mode, can be either  *
 *                                  disabled, enabled or partitioning         *
 *             trends_mode  - [OUT] trends housekeeping mode, can be either   *
 *                                  disabled, enabled or partitioning         *
 *                                                                            *
 ******************************************************************************/
zbx_config_get_hk_mode

Purpose: get housekeeping mode for history and trends tables

Parameters: history_mode - [OUT] history housekeeping mode, can be either
disabled, enabled or partitioning
trends_mode  - [OUT] trends housekeeping mode, can be either
disabled, enabled or partitioning
zbx_config_get_hk_mode Purpose : get housekeeping mode for history and trends tables Parameters : history_mode - [ OUT ] history housekeeping mode can be either disabled enabled or partitioning trends_mode - [ OUT ] trends housekeeping mode can be either disabled enabled or partitioning
void	zbx_config_get_hk_mode(unsigned char *history_mode, unsigned char *trends_mode)
{
	RDLOCK_CACHE;
	*history_mode = config->config->hk.history_mode;
	*trends_mode = config->config->hk.trends_mode;
	UNLOCK_CACHE;
}
void zbx_config_get_hk_mode ( unsigned char * history_mode , unsigned char * trends_mode ) { RDLOCK_CACHE ; * history_mode = config -> config -> hk . history_mode ; * trends_mode = config -> config -> hk . trends_mode ; UNLOCK_CACHE ; }
Function: zbx_config_get_hk_mode                                           
                                                                            
 Purpose: get housekeeping mode for history and trends tables               
                                                                            
 Parameters: history_mode - [OUT] history housekeeping mode, can be either  
                                  disabled, enabled or partitioning         
             trends_mode  - [OUT] trends housekeeping mode, can be either   
                                  disabled, enabled or partitioning
Function : zbx_config_get_hk_mode Purpose : get housekeeping mode for history and trends tables Parameters : history_mode - [ OUT ] history housekeeping mode can be either disabled enabled or partitioning trends_mode - [ OUT ] trends housekeeping mode can be either disabled enabled or partitioning