FACT++  1.0
void dis_set_quality ( unsigned  serv_id,
int  quality 
)

Definition at line 1748 of file dis_old.c.

References DIM_ERROR, DIMSVCINVAL, error_handler(), serv::id, id_get_ptr(), serv::quality, serv_id, sprintf(), SRC_DIS, and str.

Referenced by dis_hash_print().

1749 {
1750  register SERVICE *servp;
1751  char str[128];
1752 
1753  DISABLE_AST
1754  if(!serv_id)
1755  {
1756  sprintf(str,"Set Quality - Invalid service id");
1758  ENABLE_AST
1759  return;
1760  }
1761  servp = (SERVICE *)id_get_ptr(serv_id, SRC_DIS);
1762  if(!servp)
1763  {
1764  ENABLE_AST
1765  return;
1766  }
1767  if(servp->id != (int)serv_id)
1768  {
1769  ENABLE_AST
1770  return;
1771  }
1772  servp->quality = quality;
1773  ENABLE_AST
1774 }
char str[80]
Definition: test_client.c:7
void * id_get_ptr(int id, SRC_TYPES type)
Definition: conn_handler.c:184
Definition: dis.c:69
#define DIMSVCINVAL
Definition: dim_common.h:290
int serv_id
Definition: demo_server.c:5
static void error_handler(int conn_id, int severity, int errcode, char *reason)
Definition: dis_old.c:2827
sprintf(name1,"NewService%d", i)
int quality
Definition: dis.c:82
int id
Definition: dis.c:73

+ Here is the call graph for this function:

+ Here is the caller graph for this function: