int_storage.h 680 B

12345678910111213141516171819202122
  1. // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
  2. // For more information, see LICENCE in the main folder
  3. #ifndef _INT_STORAGE_SQL_H_
  4. #define _INT_STORAGE_SQL_H_
  5. struct storage_data;
  6. struct guild_storage;
  7. int inter_storage_sql_init(void);
  8. void inter_storage_sql_final(void);
  9. int inter_storage_delete(int account_id);
  10. int inter_guild_storage_delete(int guild_id);
  11. int inter_storage_parse_frommap(int fd);
  12. //Exported for use in the TXT-SQL converter.
  13. int storage_fromsql(int account_id, struct storage_data* p);
  14. int storage_tosql(int account_id,struct storage_data *p);
  15. int guild_storage_tosql(int guild_id, struct guild_storage *p);
  16. #endif /* _INT_STORAGE_SQL_H_ */