26 #include "../my_config.h"
28 #ifndef ZAPETTE_PROTOCOL_HPP
29 #define ZAPETTE_PROTOCOL_HPP
47 constexpr
unsigned char ANSWER_TYPE_DATA =
'D';
48 constexpr
unsigned char ANSWER_TYPE_INFININT =
'I';
50 constexpr U_I REQUEST_SIZE_SPECIAL_ORDER = 0;
51 constexpr U_I REQUEST_OFFSET_END_TRANSMIT = 0;
52 constexpr U_I REQUEST_OFFSET_GET_FILESIZE = 1;
53 constexpr U_I REQUEST_OFFSET_CHANGE_CONTEXT_STATUS = 2;
54 constexpr U_I REQUEST_IS_OLD_START_END_ARCHIVE = 3;
55 constexpr U_I REQUEST_GET_DATA_NAME = 4;
56 constexpr U_I REQUEST_FIRST_SLICE_HEADER_SIZE = 5;
57 constexpr U_I REQUEST_OTHER_SLICE_HEADER_SIZE = 6;
66 void write(generic_file *f);
67 void read(generic_file *f);
77 void write(generic_file *f,
char *data);
78 void read(generic_file *f,
char *data, U_16 max);
class generic_file is defined here as well as class fichier
switch module to limitint (32 ou 64 bits integers) or infinint
are defined here basic integer types that tend to be portable
libdar namespace encapsulate all libdar symbols