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

Definition at line 2736 of file dis.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().

2737 {
2738  register DIS_CMND *new_cmnd;
2739 /* queue the command */
2740 
2741  if(!Cmnds_head)
2742  {
2743  Cmnds_head = (DIS_CMND *)malloc(sizeof(DIS_CMND));
2744  sll_init((SLL *) Cmnds_head);
2745  }
2746  new_cmnd = (DIS_CMND *)malloc((size_t)((*size)+12));
2747  new_cmnd->next = 0;
2748  new_cmnd->tag = *tag;
2749  new_cmnd->size = *size;
2750  memcpy(new_cmnd->buffer, cmnd_buff, (size_t)*size);
2751  sll_insert_queue((SLL *) Cmnds_head, (SLL *) new_cmnd);
2752 }
static DIS_CMND * Cmnds_head
Definition: dis.c:2734
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
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: