]> git.cworth.org Git - apitrace/blob - log.hpp
Inline the HTML style sheet.
[apitrace] / log.hpp
1 /****************************************************************************
2  *
3  * Copyright 2008 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 namespace Log {
24
25     void Open(const char *name);
26     void ReOpen(void);
27     void Close(void);
28     
29     void Text(const char *text);
30     void TextF(const char *format, ...);
31     
32     void BeginCall(const char *function);
33     void EndCall(void);
34     
35     void BeginArg(const char *type, const char *name);
36     void EndArg(void);
37
38     void BeginReturn(const char *type);
39     void EndReturn(void);
40
41     void BeginElement(const char *type);
42     void BeginElement(const char *type, const char *name);
43     void EndElement(void);
44
45     void BeginReference(const char *type, const void *addr);
46     void EndReference(void);
47
48     void DumpString(const char *str);
49     
50 }
51
52 #endif /* _LOG_HPP_ */