00001 /* 00002 * DB-ALLe - Archive for punctual meteorological data 00003 * 00004 * Copyright (C) 2005,2006 ARPA-SIM <urpsim@smr.arpa.emr.it> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 * 00019 * Author: Enrico Zini <enrico@enricozini.com> 00020 */ 00021 00022 #ifndef DBA_EXPORT_H 00023 #define DBA_EXPORT_H 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00034 #include <dballe/db/db.h> 00035 #include <dballe/msg/msgs.h> 00036 #include <dballe/core/record.h> 00037 00041 typedef dba_err (*dba_msg_consumer)(dba_msgs msgs, void* data); 00042 00058 dba_err dba_db_export(dba_db db, dba_record query, dba_msg_consumer cons, void* data); 00059 00060 #if 0 00061 dba_err dba_db_export_old(dba_db db, dba_msg_type export_type, dba_record query, dba_msg_consumer cons, void* data); 00062 #endif 00063 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 00068 /* vim:set ts=4 sw=4: */ 00069 #endif