Sample Programs, Configuration, and Header Files
webqosapi.h Header File
webqosapi.h Header File
The following is the contents of the /usr/include/webqosapi.h header file.
#ifndef _WEBQOSAPI_H #define _WEBQOSAPI_H
/*
*$Source: /qos/qosapi/webqosapi.h $ $Revision: 1.21 $ $Date: 1999/02/17 22:48:28 $”
*(C) Copyright 1998,
*/
#include <inttypes.h> | /* for uint32_t */ |
#ifdef __cplusplus extern “C” {
#endif /* __cplusplus */
/* Service (AKA Processing) classes */ |
| ||
#define WQ_SVCCLS_OTHER | 0 |
|
|
#define WQ_SVCCLS_LOW | 1 |
|
|
#define WQ_SVCCLS_MED | 2 |
|
|
#define WQ_SVCCLS_HIGH | 3 |
|
|
#define WQ_SVCCLS_ROOT | 99 |
| /* PRM_SYS, only for root */ |
/* User (AKA Session) classes */ |
|
|
|
#define WQ_UCLASS_LOW | 1 |
|
|
#define WQ_UCLASS_MED | 2 |
|
|
#define WQ_UCLASS_HIGH | 3 |
|
|
/* Service (AKA Processing) class | errors codes */ | ||
#define WQERR_OTHER | /* generic error - see log file */ | ||
#define WQERR_NOTREADY | /* not installed, not config’d, etc */ | ||
#define WQERR_CONNECT | /* connection problem - see log file */ | ||
#define WQERR_PERMISSION | /* permission denied in svccls.allow */ | ||
#define WQERR_BADSVCCLASS | /* invalid service class argument */ | ||
#define WQERR_BADSCOPE | /* invalid scope argument */ | ||
#define WQERR_NOTROOT | /* only root can move to this class */ | ||
/* User (AKA Session) class error | codes | */ | |
#define WQERR_WQOS_DISABLED | /* WebQoS is disabled */ |
38 | Appendix A |