avdl_data.h 462 B

12345678910111213
  1. #ifndef AVDL_DATA_H
  2. #define AVDL_DATA_H
  3. extern char avdl_data_saveDirectory[];
  4. int avdl_data_save_internal(void *data, int data_size, const char *filename);
  5. int avdl_data_load_internal(void *data, int data_size, const char *filename);
  6. #define avdl_data_save(data, class, filename) avdl_data_save_internal(data, sizeof(struct class), filename)
  7. #define avdl_data_load(data, class, filename) avdl_data_load_internal(data, sizeof(struct class), filename)
  8. #endif