FACT++  1.0
int dna_init ( )

Definition at line 530 of file dna.c.

References conn_arr_create(), DNA_Initialized, i, MAX_CONNS, MAX_TMOUT_PENDING_CONNS, size, SRC_DNA, PENDING_OPEN::task_name, and TRUE.

Referenced by dim_init(), dna_open_client(), and dna_open_server().

531 {
532  PENDING_OPEN *pending_connp;
533  int i, size;
534 
535  if(!DNA_Initialized)
536  {
538  pending_connp = &Pending_conns[1];
539  size = MAX_CONNS;
540  for( i = 1; i < size; i++, pending_connp++ )
541  pending_connp->task_name[0] = '\0';
542  pending_connp = &Pending_conns_tmout[1];
544  for( i = 1; i < size; i++, pending_connp++ )
545  pending_connp->task_name[0] = '\0';
547  }
548  return(1);
549 }
static int DNA_Initialized
Definition: dna.c:41
int i
Definition: db_dim_client.c:21
#define TRUE
Definition: dim.h:135
#define MAX_CONNS
Definition: dim.h:163
static PENDING_OPEN Pending_conns[MAX_CONNS]
Definition: dna.c:38
void conn_arr_create(SRC_TYPES type)
Definition: conn_handler.c:49
#define MAX_TMOUT_PENDING_CONNS
Definition: dna.c:37
int size
Definition: db_dim_server.c:17
static PENDING_OPEN Pending_conns_tmout[MAX_TMOUT_PENDING_CONNS]
Definition: dna.c:39
char task_name[MAX_TASK_NAME]
Definition: dna.c:30

+ Here is the call graph for this function:

+ Here is the caller graph for this function: