glitchedhttps
glitchedhttps_debug.h
Go to the documentation of this file.
1/*
2 Copyright 2020 Raphael Beck
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
22#ifndef GLITCHEDHTTPS_DEBUG_H
23#define GLITCHEDHTTPS_DEBUG_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include "glitchedhttps_api.h"
30
32GLITCHEDHTTPS_API void glitchedhttps_debug(void* ctx, int level, const char* file, int line, const char* str);
33
35GLITCHEDHTTPS_API void glitchedhttps_log_error(const char* error, const char* origin);
36
43GLITCHEDHTTPS_API int glitchedhttps_set_error_callback(void (*error_callback)(const char*));
44
48GLITCHEDHTTPS_API int glitchedhttps_unset_error_callback();
49
50#ifdef __cplusplus
51} // extern "C"
52#endif
53
54#endif // GLITCHEDHTTPS_DEBUG_H
API macro for dllexport/dllimport.
GLITCHEDHTTPS_API int glitchedhttps_unset_error_callback()
GLITCHEDHTTPS_API int glitchedhttps_set_error_callback(void(*error_callback)(const char *))