Debian Codegraph @

lib/grn_windows.h

raw symbols SCIP
1 /*
2 Copyright(C) 2010-2017 Brazil
3 Copyright(C) 2021 Sutou Kouhei <[email protected]>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #pragma once
21
22 #include "grn.h"
23 #include "wchar.h"
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 #ifdef _WIN32
30 void grn_windows_init(void);
31 void grn_windows_fin(void);
32 GRN_API UINT grn_windows_encoding_to_code_page(grn_encoding encoding);
33 bool grn_windows_symbol_initialize(grn_ctx *ctx, HANDLE process);
34 bool grn_windows_symbol_cleanup(grn_ctx *ctx, HANDLE process);
35 void grn_windows_log_back_trace_entry(grn_ctx *ctx,
36 grn_log_level level,
37 HANDLE process,
38 DWORD64 address);
39 void grn_windows_log_back_trace(grn_ctx *ctx,
40 grn_log_level level,
41 HANDLE process,
42 HANDLE thread,
43 CONTEXT *context);
44 #endif
45
46 #ifdef __cplusplus
47 }
48 #endif