Changeset 057e0c6fdd21f0c4e9158d3ae149de09dd80dfd9

Show
Ignore:
Timestamp:
11/22/08 16:41:21 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1227372081 +0000
git-parent:

[839ed4b45ead30b4c16f8196190d8e185d1ef116]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1227372081 +0000
Message:

change noit_conf_boolean to noit_conf... more sense. refs #34

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_check.c

    r7180374 r057e0c6  
    115115    int no_oncheck = 0; 
    116116    int period = 0, timeout = 0; 
    117     noit_conf_boolean disabled = noit_false, busted = noit_false; 
     117    noit_boolean disabled = noit_false, busted = noit_false; 
    118118    uuid_t uuid, out_uuid; 
    119119    noit_hash_table *options; 
  • src/noit_conf.c

    rdb656f3 r057e0c6  
    429429} 
    430430int noit_conf_get_boolean(noit_conf_section_t section, 
    431                           const char *path, noit_conf_boolean *value) { 
     431                          const char *path, noit_boolean *value) { 
    432432  char *str; 
    433433  if(_noit_conf_get_string(section,NULL,path,&str)) { 
     
    441441} 
    442442int noit_conf_set_boolean(noit_conf_section_t section, 
    443                           const char *path, noit_conf_boolean value) { 
     443                          const char *path, noit_boolean value) { 
    444444  if(value == noit_true) 
    445445    return noit_conf_set_string(section,path,"true"); 
     
    662662    char name[256], type[256], path[256]; 
    663663    noit_hash_table *config; 
    664     noit_conf_boolean disabled; 
     664    noit_boolean disabled; 
    665665 
    666666    if(!noit_conf_get_stringbuf(log_configs[i], 
  • src/noit_conf.h

    rdcd539d r057e0c6  
    1313#include <uuid/uuid.h> 
    1414 
    15 typedef enum { noit_false = 0, noit_true } noit_conf_boolean; 
    1615typedef void * noit_conf_section_t; 
    1716 
     
    5756                                    const char *path, float *value); 
    5857API_EXPORT(int) noit_conf_get_boolean(noit_conf_section_t section, 
    59                                       const char *path, noit_conf_boolean *value); 
     58                                      const char *path, noit_boolean *value); 
    6059API_EXPORT(int) 
    6160  noit_conf_get_uuid(noit_conf_section_t section, 
     
    6968                                    const char *path, float value); 
    7069API_EXPORT(int) noit_conf_set_boolean(noit_conf_section_t section, 
    71                                       const char *path, noit_conf_boolean value); 
     70                                      const char *path, noit_boolean value); 
    7271 
    7372API_EXPORT(int) 
  • src/noit_conf_checks.c

    r7180374 r057e0c6  
    235235  xmlXPathObjectPtr pobj = NULL; 
    236236  xmlNodePtr node = NULL; 
    237   noit_conf_boolean creating_new = noit_false; 
     237  noit_boolean creating_new = noit_false; 
    238238 
    239239  if(closure) { 
  • src/noit_config.h.in

    r451a0e0 r057e0c6  
    247247#endif 
    248248 
    249 #endif 
     249typedef enum { noit_false = 0, noit_true } noit_boolean; 
     250 
     251#endif 
  • src/noit_filters.c

    rf921b22 r057e0c6  
    142142} 
    143143 
    144 static noit_conf_boolean 
     144static noit_boolean 
    145145noit_apply_filterrule(pcre *p, pcre_extra *pe, const char *subj) { 
    146146  int rc, ovector[30]; 
     
    150150  return noit_false; 
    151151} 
    152 noit_conf_boolean 
     152noit_boolean 
    153153noit_apply_filterset(const char *filterset, 
    154154                     noit_check_t *check, 
  • src/noit_filters.h

    rf921b22 r057e0c6  
    1919  noit_refresh_filtersets(); 
    2020 
    21 API_EXPORT(noit_conf_boolean) 
     21API_EXPORT(noit_boolean) 
    2222  noit_apply_filterset(const char *filterset, 
    2323                       noit_check_t *check, 
  • src/noit_listener.c

    r6bb9ef8 r057e0c6  
    292292    int backlog; 
    293293    eventer_func_t f; 
    294     noit_conf_boolean ssl; 
     294    noit_boolean ssl; 
    295295    noit_hash_table *sslconfig, *config; 
    296296