FACT++  1.0
void do_cmnd_callback ( CMNDCB_ITEM itemp)

Definition at line 1928 of file dic.c.

References dic_serv::conn_id, Curr_conn_id, end_command(), Memory::free(), id_get_ptr(), NOT_PENDING, dic_serv::pending, CMNDCB_ITEM::ret_code, serv_id, dic_serv::serv_id, CMNDCB_ITEM::serv_id, SRC_DIC, dic_serv::tag, and dic_serv::user_routine.

Referenced by recv_rout(), and send_command().

1929 {
1930 
1931  DIC_SERVICE *servp;
1932  int ret, serv_id;
1933 /*
1934  itemp = (CMNDCB_ITEM *)id_get_ptr(id, SRC_DIC);
1935 */
1936  serv_id = itemp->serv_id;
1937  ret = itemp->ret_code;
1938  servp = (DIC_SERVICE *)id_get_ptr(serv_id, SRC_DIC);
1939  if(servp)
1940  {
1941  if(servp->serv_id == serv_id)
1942  {
1943  Curr_conn_id = servp->conn_id;
1944  (servp->user_routine)( &servp->tag, &ret );
1945  servp->pending = NOT_PENDING;
1946  end_command(servp, ret);
1947  Curr_conn_id = 0;
1948  }
1949  }
1950 /*
1951  id_free(id, SRC_DIC);
1952 */
1953  free(itemp);
1954 }
int end_command(DIC_SERVICE *servp, int ret)
Definition: dic.c:1808
void * id_get_ptr(int id, SRC_TYPES type)
Definition: conn_handler.c:184
int serv_id
Definition: dic.c:1925
PENDING_STATES pending
Definition: dim.h:476
void(* user_routine)()
Definition: dim.h:472
dim_long tag
Definition: dim.h:473
int conn_id
Definition: dim.h:475
Definition: dim.h:457
static int Curr_conn_id
Definition: dic.c:54
int serv_id
Definition: demo_server.c:5
int serv_id
Definition: dim.h:461
void free(void *mem)
int ret_code
Definition: dic.c:1924

+ Here is the call graph for this function:

+ Here is the caller graph for this function: