2 Copyright (C) 2016 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_security_origin_internal_h
21 #define ewk_security_origin_internal_h
23 #include "ewk_security_origin.h"
30 * Requests for getting host of security origin.
32 * @param origin security origin
34 * @return host of security origin
36 EXPORT_API uint16_t ewk_security_origin_port_get(const Ewk_Security_Origin* origin);
39 * Release all resources allocated by a security origin object.
41 * @param o security origin object
43 EXPORT_API void ewk_security_origin_free(Ewk_Security_Origin *o);
46 * Creates a security origin for a url.
48 * @param url the url for the security origin.
50 * @return the security origin object
52 EXPORT_API Ewk_Security_Origin *ewk_security_origin_new_from_string(const char *url);
57 #endif // ewk_security_origin_internal_h