Graphiteng
XmlLog.h
Go to the documentation of this file.
00001 /*  GRAPHITE2 LICENSING
00002 
00003     Copyright 2010, SIL International
00004     All rights reserved.
00005 
00006     This library is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU Lesser General Public License as published
00008     by the Free Software Foundation; either version 2.1 of License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Lesser General Public License for more details.
00015 
00016     You should also have received a copy of the GNU Lesser General Public
00017     License along with this library in the file named "LICENSE".
00018     If not, write to the Free Software Foundation, 51 Franklin Street,
00019     Suite 500, Boston, MA 02110-1335, USA or visit their web page on the
00020     internet at http://www.fsf.org/licenses/lgpl.html.
00021 
00022     Alternatively, the contents of this file may be used under the terms
00023     of the Mozilla Public License (http://mozilla.org/MPL) or the GNU
00024     General Public License, as published by the Free Software Foundation,
00025     either version 2 of the License or (at your option) any later version.
00026 */
00027 #pragma once
00028 
00029 #include <graphite2/Types.h>
00030 #include <stdio.h>
00031 
00032 typedef enum {
00033     GRLOG_NONE = 0x0,
00034     GRLOG_FACE = 0x01,
00035     GRLOG_SEGMENT = 0x02,
00036     GRLOG_PASS = 0x04,
00037     GRLOG_CACHE = 0x08,
00038     
00039     GRLOG_OPCODE = 0x80,
00040     GRLOG_ALL = 0xFF
00041 } GrLogMask;
00042 
00043 // If startGraphiteLogging returns true, logging is enabled and the FILE handle
00044 // will be closed by graphite when stopGraphiteLogging is called.
00045 #ifdef __cplusplus
00046 extern "C"
00047 {
00048 #endif
00049 
00050 GR2_API bool graphite_start_logging(FILE * logFile, GrLogMask mask);            //may not do anthing if disabled in the implementation of the engine.
00051 GR2_API void graphite_stop_logging();
00052 
00053 #ifdef __cplusplus
00054 }
00055 #endif
 All Files Functions Typedefs Enumerations Enumerator Defines