2 Copyright (C) 2012 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.
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.
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.
20 #ifndef ewk_user_media_h
21 #define ewk_user_media_h
29 typedef struct _Ewk_User_Media_Permission_Request Ewk_User_Media_Permission_Request;
32 * Sets the permission to access local media
34 * @param request Ewk_View_User_Media_Permission_Request object for userMedia permission
35 * @param allowed decided permission value from user
37 EAPI void ewk_user_media_permission_request_set(Ewk_User_Media_Permission_Request *request, Eina_Bool allowed);
40 * Suspend the operation for user media permission
42 * @param request user media permission request object
44 * @return @c EINA_TRUE on success or @c EINA_FALSE on failure
46 EAPI Eina_Bool ewk_user_media_permission_request_suspend(Ewk_User_Media_Permission_Request *request);
51 #endif // ewk_user_media_h