#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. |
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.
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 |
References _dba_db::attr, DBA_DB_MODIFIER_SORT_FOR_EXPORT, DBA_DB_WANT_ANA_ID, DBA_DB_WANT_CONTEXT_ID, DBA_DB_WANT_COORDS, DBA_DB_WANT_DATETIME, DBA_DB_WANT_IDENT, DBA_DB_WANT_LEVEL, DBA_DB_WANT_REPCOD, DBA_DB_WANT_TIMERANGE, DBA_DB_WANT_VAR_NAME, DBA_DB_WANT_VAR_VALUE, DBA_RUN_OR_GOTO, DBA_RUN_OR_RETURN, DBA_VAR, DBA_VAR_X, DBA_VAR_Y, _dba_db_attr::id_context, MSG_PILOT, MSG_TEMP, MSG_TEMP_SHIP, _dba_db_cursor::out_ana_id, _dba_db_cursor::out_context_id, _dba_db_cursor::out_datetime, _dba_db_cursor::out_ident, _dba_db_cursor::out_ident_ind, _dba_db_cursor::out_idvar, _dba_db_cursor::out_l1, _dba_db_cursor::out_l2, _dba_db_cursor::out_lat, _dba_db_cursor::out_lon, _dba_db_cursor::out_ltype1, _dba_db_cursor::out_ltype2, _dba_db_cursor::out_p1, _dba_db_cursor::out_p2, _dba_db_cursor::out_pind, _dba_db_cursor::out_rep_cod, _dba_db_cursor::out_value, TRACE, and _dba_msg::type.