autosave.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* RetroArch - A frontend for libretro.
  2. * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
  3. * Copyright (C) 2011-2016 - Daniel De Matteis
  4. *
  5. * RetroArch is free software: you can redistribute it and/or modify it under the terms
  6. * of the GNU General Public License as published by the Free Software Found-
  7. * ation, either version 3 of the License, or (at your option) any later version.
  8. *
  9. * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  10. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. * PURPOSE. See the GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License along with RetroArch.
  14. * If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef __RARCH_AUTOSAVE_H
  17. #define __RARCH_AUTOSAVE_H
  18. #include <stddef.h>
  19. #include <retro_common_api.h>
  20. RETRO_BEGIN_DECLS
  21. /**
  22. * autosave_lock:
  23. *
  24. * Lock autosave.
  25. **/
  26. void autosave_lock(void);
  27. /**
  28. * autosave_unlock:
  29. *
  30. * Unlocks autosave.
  31. **/
  32. void autosave_unlock(void);
  33. bool autosave_init(void);
  34. void autosave_deinit(void);
  35. RETRO_END_DECLS
  36. #endif