xref: /haiku/src/apps/poorman/PoorManLogger.h (revision 6011ce6c7495e4e707bd33b12a7e22d66c710aad)
1 /*
2  * Copyright 2009 Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Author(s):
6  *		Ma Jie, china.majie at gmail
7  */
8 #ifndef POOR_MAN_LOG_H
9 #define POOR_MAN_LOG_H
10 
11 #include <netinet/in.h>
12 
13 #include "constants.h" //for rgb_color BLACK
14 #include "libhttpd.h" //for httpd_sockaddr
15 
16 #ifdef __cplusplus
17 	extern "C"
18 	void poorman_log(
19 		const char* msg,
20 		bool needTimeHeader = true,
21 		httpd_sockaddr* addr = NULL,
22 		rgb_color color = BLACK
23 	);
24 #else //c version is for libhttpd
25 	void poorman_log(
26 		const char* msg,
27 		bool needTimeHeader,
28 		httpd_sockaddr* addr,
29 		rgb_color color
30 	);
31 #endif
32 
33 
34 #endif	// POOR_MAN_LOG_H
35