int_storage.h 878 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _INT_STORAGE_H_
  4. #define _INT_STORAGE_H_
  5. struct storage_data;
  6. struct guild_storage;
  7. int inter_storage_init(void);
  8. void inter_storage_final(void);
  9. int inter_storage_save(void);
  10. int inter_guild_storage_save(void);
  11. int inter_storage_delete(int account_id);
  12. int inter_guild_storage_delete(int guild_id);
  13. int inter_storage_parse_frommap(int fd);
  14. extern char storage_txt[1024];
  15. extern char guild_storage_txt[1024];
  16. //Exported for use in the TXT-SQL converter.
  17. bool storage_fromstr(char* str, int* account_id, struct storage_data* p);
  18. int guild_storage_fromstr(char *str,struct guild_storage *p);
  19. bool storage_load(int account_id, struct storage_data* storage);
  20. bool storage_save(int account_id, struct storage_data* storage);
  21. #endif /* _INT_STORAGE_H_ */