binary.h 569 B

123456789101112131415161718192021
  1. #ifndef _BINARY_H
  2. # define _BINARY_H
  3. #include "conf.h"
  4. extern int checked_bin_buf;
  5. # define GET_CHECKSUM BIT0
  6. # define WRITE_CHECKSUM BIT1
  7. # define WRITE_PACK BIT2
  8. # define WRITE_CONF BIT3
  9. # define GET_CONF BIT4
  10. void check_sum(const char *, const char *, bool);
  11. void write_settings(const char *, int, bool, int initialized = -1);
  12. int check_bin_initialized(const char *fname);
  13. bool check_bin_compat(const char *fname);
  14. void conf_to_bin(conf_t *, bool, int);
  15. void reload_bin_data();
  16. void writecfg();
  17. #endif /* !_BINARY_H */