|
|
|
| Sample Programs, Configuration, and Header Files |
|
|
|
| webqosapi.h Header File |
#define WQERR_INVALD_SOCKID | /* bad socket id parameter */ | |||
#define WQERR_USRCLAS_OTHER | /* other user class error */ | |||
#define WQERR_PLCY_DISALLOW | /* admin disallow app usr cls modifcn*/ | |||
#define WQERR_INVAL_USR_CLS | /* 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 */
Appendix A | 39 |