User's Guide
Appendix A 39
Sample Programs, Configuration, and Header Files
webqosapi.h Header File
#define WQERR_INVALD_SOCKID (-21) /* bad socket id parameter */
#define WQERR_USRCLAS_OTHER (-22) /* other user class error */
#define WQERR_PLCY_DISALLOW (-23) /* admin disallow app usr cls modifcn*/
#define WQERR_INVAL_USR_CLS (-24) /* app provided invalid usr cls param*/
/* scope argument value for wq_set_proc_cls() */
#define WQ_SCOPE_PROCESS 1
#if defined(__STDC__) || defined(__cplusplus)
extern int wq_get_session_cls(int socketid, int *errorcode);
extern int wq_set_session_cls(int socketid, uint32_t cls,int *errorcode);
extern int wq_get_proc_cls(int *errorcode);
extern int wq_set_proc_cls(uint32_t cls, uint32_t scope, int *errorcode);
#else
extern int wq_get_session_cls();
extern int wq_set_session_cls();
extern int wq_get_proc_cls();
extern int wq_set_proc_cls();
#endif
# ifdef __cplusplus
}
# endif /* __cplusplus */
#endif /* _WEBQOSAPI_H */