gui.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * This file is part of RuneOptimizer.
  3. *
  4. * RuneOptimizer is free software: you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the Free
  6. * Software Foundation, either version 3 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * RuneOptimizer is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * RuneOptimizer. If not, see <https://www.gnu.org/licenses/>.
  16. */
  17. /**
  18. * @file gui.h
  19. *
  20. * Declarations of the functions related to the gui command.
  21. *
  22. * This file declares all the functions used by the gui command implemented in
  23. * {@link gui.c}.
  24. */
  25. #pragma once
  26. /**
  27. * Makes sure that the database is set up for the gui.
  28. *
  29. * This will make sure that the database exists in the default location, and
  30. * that all the tables are created by making a call to {@link db_open}.
  31. *
  32. * @return {@link SUCCESS} or {@link ERROR_DB_CANT_OPEN} if the database
  33. * can't be created or accessed.
  34. */
  35. int gui();