Create string tightly when retrive string from cbhm callback event
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / API / efl / ewk_user_media.h
1 /*
2    Copyright (C) 2012 Samsung Electronics
3
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
9     This library is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12     Library General Public License for more details.
13
14     You should have received a copy of the GNU Library General Public License
15     along with this library; see the file COPYING.LIB.  If not, write to
16     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17     Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef ewk_user_media_h
21 #define ewk_user_media_h
22
23 #include <Eina.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 typedef struct _Ewk_User_Media_Permission_Request Ewk_User_Media_Permission_Request;
30
31 /**
32  * Sets the permission to access local media
33  *
34  * @param request Ewk_View_User_Media_Permission_Request object for userMedia permission
35  * @param allowed decided permission value from user
36  */
37 EAPI void ewk_user_media_permission_request_set(Ewk_User_Media_Permission_Request *request, Eina_Bool allowed);
38
39 /**
40  * Suspend the operation for user media permission
41  *
42  * @param request user media permission request object
43  *
44  * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
45  */
46 EAPI Eina_Bool ewk_user_media_permission_request_suspend(Ewk_User_Media_Permission_Request *request);
47
48 #ifdef __cplusplus
49 }
50 #endif
51 #endif // ewk_user_media_h