]> git.notmuchmail.org Git - apitrace/blob - log.hpp
More instructions and copyright updates.
[apitrace] / log.hpp
1 /****************************************************************************
2  *
3  * Copyright 2008 Jose Fonseca, Tungsten Graphics, Inc.
4  *
5  * This program is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published
7  * by the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program 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
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  ****************************************************************************/
19
20 #ifndef _LOG_HPP_
21 #define _LOG_HPP_
22
23 #include <windows.h>
24 #include <tchar.h>
25
26
27 namespace Log {
28
29     void Open(const TCHAR *szName);
30     void ReOpen(void);
31     void Close(void);
32     
33     void NewLine(void);
34     
35     void Tag(const char *name);
36     void BeginTag(const char *name);
37     void BeginTag(const char *name, 
38                   const char *attr1, const char *value1);
39     void BeginTag(const char *name, 
40                   const char *attr1, const char *value1,
41                   const char *attr2, const char *value2);
42     void EndTag(const char *name);
43     
44     void Text(const char *text);
45     void TextF(const char *format, ...);
46     
47     void BeginCall(const char *function);
48     void EndCall(void);
49     
50     void BeginArg(const char *type, const char *name);
51     void EndArg(void);
52
53     void BeginReturn(const char *type);
54     void EndReturn(void);
55
56     void BeginElement(const char *type);
57     void BeginElement(const char *type, const char *name);
58     void EndElement(void);
59
60     void BeginReference(const char *type, const void *addr);
61     void EndReference(void);
62
63     void DumpString(const char *str);
64     
65 }
66
67 #endif /* _LOG_HPP_ */