- Hewlett-Packard Printer User Guide
Using the VPO Application Programming Interfaces
Summary of VPO API Functions
Chapter 4 197
Functions of the VPO Service APIs
Functions to Access the VPO Interface
Functions to Access the Registration Conditions
See the man page opcregcond(3) for information about these functions.
Table 4-6 Overview of the VPO Service API Functions
Function Call Description
opcif_close() Terminate a connection to the interface
opcif_get_pipe() Returns pipefd of its interface input queue
opcif_open() Opens an instance of the Server/Agent MSI, Legacy
Link Interface, Message Event Interface, or
Application Response Interface
opcif_read() Read information from specified interface
opcif_register() Register for certain attributes
opcif_unregister() Unregister condition
opcif_write() Writes a message to the interface
Table 4-7 Overview of the Registration Condition Access and Creation Functions
Function Call Description
opcreg_create() Creates an empty registration condition structure
opcreg_copy() Creates a copy of registration condition
opcreg_free() Deallocates previously allocated memory
opcreg_get_long() Gets value of given field
opcreg_get_str() Gets string value of given field
opcreg_set_long() Sets attribute in regcond to value
opcreg_set_str() Sets string attribute of regcond to value