Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef DBALLE_AOF_CODEC_H
00023 #define DBALLE_AOF_CODEC_H
00024
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028
00052 #include <dballe/core/rawmsg.h>
00053 #include <dballe/core/file.h>
00054 #include <dballe/msg/msgs.h>
00055 #include <stdint.h>
00056
00067 dba_err aof_codec_decode(dba_rawmsg msg, dba_msgs* msgs);
00068
00081 dba_err aof_codec_get_category(dba_rawmsg msg, int* category, int* subcategory);
00082
00093
00094
00095
00096
00105 void aof_codec_dump(dba_rawmsg msg, FILE* out);
00106
00120 dba_err aof_codec_read_record(dba_file file, uint32_t** rec, int* len);
00121
00135 dba_err aof_codec_write_record(dba_file file, const uint32_t* rec, int len);
00136
00155 dba_err aof_codec_read_header(dba_file file, uint32_t** fdr, int* fdr_len, uint32_t** ddr, int* ddr_len);
00156
00169 dba_err aof_codec_write_dummy_header(dba_file file);
00170
00184 dba_err aof_codec_fix_header(dba_file file);
00185
00186
00187 #ifdef __cplusplus
00188 }
00189 #endif
00190
00191
00192 #endif