FACT++  1.0
char* dic_get_format ( unsigned  serv_id)

Definition at line 961 of file dic.c.

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

Referenced by dic_find_server_conns(), get_curr_service_format(), DimInfo::getFormat(), and Java_dim_Client_getFormat().

962 {
963  register DIC_SERVICE *servp;
964 
965  DISABLE_AST
966  if( serv_id == 0 )
967  {
968  if(Current_server)
969  servp = Current_server;
970  else
971  {
972  ENABLE_AST
973  return((char *) 0);
974  }
975  }
976  else
977  {
978  servp = (DIC_SERVICE *)id_get_ptr(serv_id, SRC_DIC);
979  }
980  ENABLE_AST
981  return(servp->def);
982 }
void * id_get_ptr(int id, SRC_TYPES type)
Definition: conn_handler.c:184
char def[MAX_NAME]
Definition: dim.h:463
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: