binary.h 436 B

123456789101112131415161718
  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 *);
  11. void write_settings(const char *, int, bool);
  12. void conf_to_bin(conf_t *, bool, int);
  13. void reload_bin_data();
  14. #endif /* !_BINARY_H */