msgs.h

Go to the documentation of this file.
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_MSG_MSGS_H
00023 #define DBA_MSG_MSGS_H
00024 
00025 #ifdef  __cplusplus
00026 extern "C" {
00027 #endif
00028 
00034 #include <dballe/msg/msg.h>
00035 
00037 struct _dba_msgs
00038 {
00043     dba_msg* msgs;
00045     int len;
00047     int alloclen;
00048 };
00050 typedef struct _dba_msgs* dba_msgs;
00051 
00060 dba_err dba_msgs_create(dba_msgs *msgs);
00061 
00068 void dba_msgs_delete(dba_msgs msgs);
00069 
00081 dba_err dba_msgs_append_acquire(dba_msgs msgs, dba_msg msg);
00082 
00091 void dba_msgs_print(dba_msgs msgs, FILE* out);
00092 
00106 void dba_msgs_diff(dba_msgs msgs1, dba_msgs msgs2, int* diffs, FILE* out);
00107 
00108 #ifdef  __cplusplus
00109 }
00110 #endif
00111 
00112 /* vim:set ts=4 sw=4: */
00113 #endif

Generated on Fri Jun 22 14:21:32 2007 for libdballe-msg by  doxygen 1.5.2