qdb_data_source()

Extract the data source for a specific database

Synopsis:

#include <qdb/qdb.h>

int qdb_data_source( qdb_hdl_t *db,
                     char *buffer,
                     int buffer_length );

Arguments:

db
A pointer to the database handle.
buffer
A buffer to hold the resulting source path information.
buffer_length
The length of buffer.

Library:

qdb

Description:

This function provides a path to the source used to initialize the database. This source may be one of several paths, depending on the state of the specified database when qdb is started and the database initialized:

Returns:

>0
Success.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_connect()