FACT++  1.0
void dis_dns_init ( )

Definition at line 1066 of file dis.c.

References create_dns(), dim_init_threads(), dll_init(), Memory::malloc(), and Threads_off.

Referenced by dis_init().

1067 {
1068  static int done = 0;
1069  DIS_DNS_CONN *dnsp;
1070  void dim_init_threads(void);
1071 
1072  if(!done)
1073  {
1074  if(!Threads_off)
1075  {
1076  dim_init_threads();
1077  }
1078  {
1079  DISABLE_AST
1080  if(!DNS_head)
1081  {
1082  DNS_head = (DIS_DNS_CONN *)malloc(sizeof(DIS_DNS_CONN));
1083  dll_init( (DLL *) DNS_head );
1084  }
1085  dnsp = create_dns(0);
1086  Default_DNS = dnsp;
1087  done = 1;
1088  ENABLE_AST
1089  }
1090  }
1091 }
DIS_DNS_CONN * Default_DNS
Definition: dis.c:129
void * malloc()
Definition: EventBuilder.cc:99
static int Threads_off
Definition: dis.c:144
void dll_init(DLL *head)
Definition: dll.c:14
void dim_init_threads()
Definition: dim_thr.c:399
Definition: dim.h:530
static DIS_DNS_CONN * create_dns(dim_long dnsid)
Definition: dis.c:1047
static DIS_DNS_CONN * DNS_head
Definition: dis.c:108

+ Here is the call graph for this function:

+ Here is the caller graph for this function: