[STYLE] add comments
[platform/core/system/swap-probe.git] / include / common_probe_init.h
1 /*
2  *  DA probe
3  *
4  * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:
7  *
8  * Vitaliy Cherepanov <v.cherepanov@samsung.com>
9  *
10  * This library is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU Lesser General Public License as published by the
12  * Free Software Foundation; either version 2.1 of the License, or (at your option)
13  * any later version.
14  *
15  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18  * License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this library; if not, write to the Free Software Foundation, Inc., 51
22  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  * Contributors:
25  * - S-Core Co., Ltd
26  *
27  */
28 #ifndef __COMMON_PROBE_INIT_H__
29 #define __COMMON_PROBE_INIT_H__
30
31 #include "dahelper.h"
32
33 ////////////////////////////////////////////////////////////////////////////
34 //egl init probe function
35 //  params:
36 //    func_name    - original function name for dlsym search
37 //    func_pointer - original function pointer (return)
38 //
39 //  info
40 //    search original function by name
41 //    function have no return becouse on error it terminates main application
42 void init_probe_egl(const char *func_name, void **func_pointer, ORIGINAL_LIBRARY id);
43
44 void probe_terminate_with_err(const char *msg, const char *func_name,
45                               ORIGINAL_LIBRARY id);
46 #endif /* __COMMON_PROBE_INIT_H__ */