Setting CS-Library context properties

After allocating a context structure, a Client-Library application can call cs_config to set CS-Library properties for the context structure.

Context properties define aspects of an application’s behavior at the context level. firstapp.c calls cs_config to set the CS_MESSAGE_CB property. This property defines a CS-Library message callback routine. An application needs to set this property if it will be handling CS-Library errors using the callback method. For more information, see Chapter 4, “Handling Errors and Messages.”

You may need to code your application to set other CS-Library context properties as well. Besides CS_MESSAGE_CB, applications most commonly set the following properties with cs_config:

For more information about CS-Library properties, see cs_config in the Open Client and Open Server Common Libraries Reference Manual.