export.h File Reference


Detailed Description

Export functions from the DB-ALLe database to dba_msg.

#include <dballe/db/db.h>
#include <dballe/msg/msgs.h>
#include <dballe/core/record.h>

Go to the source code of this file.

Typedefs

typedef dba_err(* dba_msg_consumer )(dba_msgs msgs, void *data)
 Callback function used to collect the messages produced by export functions.

Functions

dba_err dba_db_export (dba_db db, dba_record query, dba_msg_consumer cons, void *data)
 Perform the query in `query', and return the results as a NULL-terminated array of dba_msg.


Function Documentation

dba_err dba_db_export ( dba_db  db,
dba_record  query,
dba_msg_consumer  cons,
void *  data 
)

Perform the query in `query', and return the results as a NULL-terminated array of dba_msg.

Parameters:
db The database to use for the query
query The query to perform
cons The dba_msg_consumer function that will handle the resulting messages
data Arbitrary extra value to be passed as-is to the dba_msg_consumer
Returns:
The error indicator for the function (See error.h)


Generated on Thu Aug 30 14:59:08 2007 for libdballe-db by  doxygen 1.5.3