00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef INPUTFILES_H
00013 #define INPUTFILES_H
00014
00015 #include <stdio.h>
00016
00017 #include "opencbm.h"
00018 #include "cbmcopy.h"
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023
00024 typedef struct {
00025 int (*probe)(FILE *, const char *, cbmcopy_message_cb);
00026
00027 int (*read)(FILE *,
00028 const char *,
00029 int,
00030 char *,
00031 char *,
00032 unsigned char **,
00033 size_t *,
00034 cbmcopy_message_cb);
00035 } input_reader;
00036
00037 #define DECLARE_INPUT_READER(x) \
00038 input_reader cbmwrite_ ## x = {probe, read}
00039
00040 #ifdef __cplusplus
00041 }
00042 #endif
00043
00044 #endif