gForceSDK
logredirect.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017, OYMotion Inc.
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* 2. Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in
14
* the documentation and/or other materials provided with the
15
* distribution.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
23
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
24
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
25
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
27
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
28
* DAMAGE.
29
*
30
*/
38
#pragma once
39
40
#include "
gfTypes.h
"
41
49
typedef
void(*
LogMethod
)(
gf::GF_UINT
level,
const
gf::GF_PCHAR
logmsg);
56
void
log_set_output_function
(
LogMethod
logmethod);
gf::GF_UINT
unsigned int GF_UINT
type definition
Definition:
gfTypes.h:58
LogMethod
void(* LogMethod)(gf::GF_UINT level, const gf::GF_PCHAR logmsg)
The function pointer type for log re-direction.
Definition:
logredirect.h:49
gf::GF_PCHAR
char * GF_PCHAR
type definition
Definition:
gfTypes.h:54
gfTypes.h
The basic type definitions using in gForceSDK.
log_set_output_function
void log_set_output_function(LogMethod logmethod)
Re-direct log output.
inc
utils
logredirect.h
Generated by
1.8.14