FACT++  1.0
void std_cmnd_handler ( long *  tag,
int *  cmnd_buff,
int *  size 
)

Definition at line 2426 of file dis_old.c.

References cmnds::buffer, Memory::malloc(), cmnds::next, size, cmnds::size, sll_init(), sll_insert_queue(), and cmnds::tag.

Referenced by do_dis_add_cmnd_dns().

2427 {
2428  register DIS_CMND *new_cmnd;
2429 /* queue the command */
2430 
2431  if(!Cmnds_head)
2432  {
2433  Cmnds_head = (DIS_CMND *)malloc(sizeof(DIS_CMND));
2434  sll_init((SLL *) Cmnds_head);
2435  }
2436  new_cmnd = (DIS_CMND *)malloc((*size)+12);
2437  new_cmnd->next = 0;
2438  new_cmnd->tag = *tag;
2439  new_cmnd->size = *size;
2440  memcpy(new_cmnd->buffer, cmnd_buff, *size);
2441  sll_insert_queue((SLL *) Cmnds_head, (SLL *) new_cmnd);
2442 }
int buffer[1]
Definition: dis.c:2731
void * malloc()
Definition: EventBuilder.cc:99
Definition: dis.c:2727
struct cmnds * next
Definition: dis.c:2728
Definition: dim.h:536
static DIS_CMND * Cmnds_head
Definition: dis_old.c:2424
void sll_init(SLL *head)
Definition: sll.c:14
int sll_insert_queue(SLL *head, SLL *item)
Definition: sll.c:20
dim_long tag
Definition: dis.c:2729
int size
Definition: db_dim_server.c:17
int size
Definition: dis.c:2730

+ Here is the call graph for this function:

+ Here is the caller graph for this function: