Create string tightly when retrive string from cbhm callback event
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / API / efl / ewk_main.h
1 /*
2     Copyright (C) 2009-2010 ProFUSION embedded systems
3     Copyright (C) 2009-2010 Samsung Electronics
4     Copyright (C) 2012 Intel Corporation
5
6     This library is free software; you can redistribute it and/or
7     modify it under the terms of the GNU Library General Public
8     License as published by the Free Software Foundation; either
9     version 2 of the License, or (at your option) any later version.
10
11     This library is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14     Library General Public License for more details.
15
16     You should have received a copy of the GNU Library General Public License
17     along with this library; see the file COPYING.LIB.  If not, write to
18     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19     Boston, MA 02110-1301, USA.
20 */
21
22 /**
23  * @file    ewk_main.h
24  * @brief   The general initialization of WebKit2-EFL, not tied to any view object.
25  */
26
27 #ifndef ewk_main_h
28 #define ewk_main_h
29
30 #include <Eina.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 /**
37  * Initializes WebKit's instance.
38  *
39  * - initializes components needed by EFL,
40  * - increases a reference count of WebKit's instance.
41  *
42  * @return a reference count of WebKit's instance on success or 0 on failure
43  */
44 EAPI int ewk_init(void);
45
46 /**
47  * Decreases a reference count of WebKit's instance, possibly destroying it.
48  *
49  * If the reference count reaches 0 WebKit's instance is destroyed.
50  *
51  * @return a reference count of WebKit's instance
52  */
53 EAPI int ewk_shutdown(void);
54
55 /**
56  * Set argument count and argument vector.
57  */
58 EAPI void ewk_set_arguments(int argc, char** argv);
59
60 #ifdef __cplusplus
61 }
62 #endif
63 #endif // ewk_main_h