FACT++  1.0
int dic_get_quality ( unsigned  serv_id)

Definition at line 937 of file dic.c.

References Current_server, id_get_ptr(), dic_serv::quality, and SRC_DIC.

Referenced by dic_find_server_conns(), DimInfo::getQuality(), Java_dim_DimInfo_getQuality(), print_service_formatted(), and rpc_user_routine().

938 {
939  register DIC_SERVICE *servp;
940 
941  DISABLE_AST
942  if( serv_id == 0 )
943  {
944  if(Current_server)
945  servp = Current_server;
946  else
947  {
948 
949  ENABLE_AST
950  return(-1);
951  }
952  }
953  else
954  {
955  servp = (DIC_SERVICE *)id_get_ptr(serv_id, SRC_DIC);
956  }
957  ENABLE_AST
958  return(servp->quality);
959 }
void * id_get_ptr(int id, SRC_TYPES type)
Definition: conn_handler.c:184
int quality
Definition: dim.h:480
static DIC_SERVICE * Current_server
Definition: dic.c:43
Definition: dim.h:457
int serv_id
Definition: demo_server.c:5

+ Here is the call graph for this function:

+ Here is the caller graph for this function: