HP WebQoS for HP-UX API Programmer's Guide

14 Chapter2
Using the WebQoS API
There is one header file that must be included in your program (contents
of this header file can be found in Appendix A , “Sample Programs,
Configuration, and Header Files,” on page 33):
/usr/include/webqosapi.h
There are four function calls available:
wq_get_session_cls() — gets the current classification rule class
of the current request being processed by the NSAPI plug-in
application
wq_set_session_cls() — sets the classification rule class of the
current request being processed by the NSAPI plug-in application
wq_get_proc_cls() — gets the process group defined for the
current process or thread
wq_set_proc_cls() — sets the process group of the current process
When compiling your applications, you must link to one or two libraries:
libqosapi_rq.sl — If you use wq_get_session_cls() or
wq_set_session_cls(), use -lqosapi_rq to link to this library.
libqosapi_pr.sl and libprmext.sl — If you use
wq_get_proc_cls() or wq_set_proc_cls(), use -lqosapi_pr
-L/opt/prm/lib -lprmext to link to these libraries.