Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

When a callback event occurs [Table of Contents] Restrictions on Client-Library calls in callbacks

Open Client Client-Library/C Reference Manual

[-] Chapter 2 Topics
[-] Callbacks
[-] Retrieving and replacing callback routines

Retrieving and replacing callback routines

To retrieve a pointer to a currently installed callback, call ct_callback with the parameter action as CS_GET. ct_callback sets *func to the address of the current callback. An application saves this address for reuse at a later time.

To deinstall a callback, call ct_callback with the parameter action as CS_SET and func as NULL.

To replace an existing callback routine with a new one, call ct_callback to install the new routine. ct_callback replaces the existing callback with the new callback.


When a callback event occurs [Table of Contents] Restrictions on Client-Library calls in callbacks