Difference between revisions of "OpenDBX/C API/odbx capabilities"
From Linuxnetworks
(→See also:) |
(header) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | int odbx_capabilities( | + | '''#include <odbx.h>''' |
− | odbx_t* handle, | + | |
− | unsigned int cap ) | + | int '''odbx_capabilities'''( |
+ | odbx_t* '''handle''', | ||
+ | unsigned int '''cap''' ) | ||
= Description: = | = Description: = |
Revision as of 23:59, 14 February 2007
#include <odbx.h> int odbx_capabilities( odbx_t* handle, unsigned int cap )
Description:
Asks the backend if a capability set is implemented. This function can be called at each stage after odbx_init() returns successfully.
Parameters:
- handle: Connection object created by odbx_init()
- cap: Capability sets listed below
Valid capability sets are:
- ODBX_CAP_BASIC: Core set implemented by all backends
Return values:
- One if capability is supported
- Zero if capability is not supported
- Less than zero if an error occured
Errors:
- -ODBX_ERR_PARAM: handle is NULL or invalid
See also:
Back to Overview