haiku/src/apps/poorman/PoorManLogger.h

35 lines
654 B
C

/*
* Copyright 2009 Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Author(s):
* Ma Jie, china.majie at gmail
*/
#ifndef POOR_MAN_LOG_H
#define POOR_MAN_LOG_H
#include <netinet/in.h>
#include "constants.h" //for rgb_color BLACK
#include "libhttpd.h" //for httpd_sockaddr
#ifdef __cplusplus
extern "C"
void poorman_log(
const char* msg,
bool needTimeHeader = true,
httpd_sockaddr* addr = NULL,
rgb_color color = BLACK
);
#else //c version is for libhttpd
void poorman_log(
const char* msg,
bool needTimeHeader,
httpd_sockaddr* addr,
rgb_color color
);
#endif
#endif // POOR_MAN_LOG_H