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, Hewlett-Packard Company, all rights reserved.

*/

#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

(-1)

/* generic error - see log file */

#define WQERR_NOTREADY

(-2)

/* not installed, not config’d, etc */

#define WQERR_CONNECT

(-3)

/* connection problem - see log file */

#define WQERR_PERMISSION

(-4)

/* permission denied in svccls.allow */

#define WQERR_BADSVCCLASS

(-5)

/* invalid service class argument */

#define WQERR_BADSCOPE

(-6)

/* invalid scope argument */

#define WQERR_NOTROOT

(-7)

/* only root can move to this class */

/* User (AKA Session) class error

codes

*/

#define WQERR_WQOS_DISABLED

(-20)

/* WebQoS is disabled */

38

Appendix A

Page 38
Image 38
HP WebQoS Software manual Webqosapi.h Header File