FACT++  1.0
void* id_get_ptr ( int  id,
SRC_TYPES  type 
)

Definition at line 184 of file conn_handler.c.

References Curr_N_Ids, id, id_item::ptr, and id_item::type.

Referenced by dic_change_address(), dic_get_format(), dic_get_quality(), dic_get_timestamp(), dic_release_service(), dis_add_service(), dis_add_service_dns(), dis_get_n_clients(), dis_get_timeout(), dis_get_timestamp(), dis_remove_service(), dis_send_service(), dis_set_quality(), dis_set_timestamp(), do_cmnd_callback(), do_dna_write(), do_update_service(), execute_service(), handle_dns_info(), Java_dim_Client_releaseService(), main(), recv_rout(), remove_service(), request_dns_info(), and service_tmout().

185 {
186  ID_ITEM *idp;
187  void *ptr;
188  DISABLE_AST
189 
190  if((id >= Curr_N_Ids) || (id <= 0))
191  {
192  ENABLE_AST
193  return(0);
194  }
195  idp = &Id_arr[id];
196  if(idp->type == type)
197  {
198  ptr = idp->ptr;
199  ENABLE_AST
200  return(ptr);
201  }
202  ENABLE_AST
203  return(0);
204 }
static int Curr_N_Ids
Definition: conn_handler.c:46
static ID_ITEM * Id_arr
Definition: conn_handler.c:42
char id[4]
Definition: FITS.h:71
SRC_TYPES type
Definition: conn_handler.c:39
int type
void * ptr
Definition: conn_handler.c:38

+ Here is the caller graph for this function: