Esempio n. 1
0
static sd_hash_t* log4c_appender_types(void)
{
  if (!appender_types)
    appender_types = sd_hash_new(20, NULL);
  
  return appender_types;
}
Esempio n. 2
0
File: layout.c Progetto: Unidata/LDM
static sd_hash_t* log4c_layout_types(void)
{
    if (!layout_types)
        layout_types = sd_hash_new(20, NULL);
    
    return layout_types;
}
Esempio n. 3
0
static sd_hash_t* log4c_layout_types(void)
{
    static sd_hash_t* types = NULL;

    if (!types)
	types = sd_hash_new(20, NULL);
    
    return types;
}
Esempio n. 4
0
extern sd_factory_t* sd_factory_new(const char* a_name,
  const sd_factory_ops_t* a_ops)
{
  sd_factory_t* this;
  
  if (!a_name || !a_ops)
    return NULL;
  
  this           = sd_calloc(1, sizeof(*this));
  this->fac_name = sd_strdup(a_name);
  this->fac_ops  = a_ops;
  this->fac_hash = sd_hash_new(20, NULL);
  return this;
}
Esempio n. 5
0
static sd_hash_t* log4c_rollingpolicy_types(void){
  if (!rollingpolicy_types)
    rollingpolicy_types = sd_hash_new(20, NULL);
  
  return rollingpolicy_types;
}