ewk_main.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. Copyright (C) 2009-2010 ProFUSION embedded systems
  3. Copyright (C) 2009-2010 Samsung Electronics
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public License
  13. along with this library; see the file COPYING.LIB. If not, write to
  14. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  15. Boston, MA 02110-1301, USA.
  16. */
  17. /**
  18. * @file ewk_main.h
  19. * @brief The main file of WebKit-EFL, not tied to any view object.
  20. */
  21. #ifndef ewk_main_h
  22. #define ewk_main_h
  23. #include <Eina.h>
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /**
  28. * Initializes webkit's instance.
  29. *
  30. * - initializes components needed by Efl,
  31. * - sets web database location,
  32. * - sets page cache capacity,
  33. * - increases a reference count of webkit's instance.
  34. *
  35. * @return a reference count of webkit's instance on success or 0 on failure
  36. */
  37. EAPI int ewk_init(void);
  38. /**
  39. * Decreases a reference count of webkit's instance, possibly destroying it.
  40. *
  41. * If the reference count reaches 0 webkit's instance is destroyed.
  42. *
  43. * @return a reference count of webkit's instance
  44. */
  45. EAPI int ewk_shutdown(void);
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif // ewk_main_h