haiku/src/apps/poorman/PoorManLogger.h
Stephan Aßmus 000fe088a7 Patch by Ma Jie: Basically - make Poorman (the webserver) work. Libhttpd from
Jef Poskanzer is providing the backend, but had to be adopted in some ways.
Other issues in Poorman have been resolved.

When testing the license integration, I stumbled over some AboutSystem bugs,
basically clicking licenses would not open them. I fixed those in this patch,
sorry for mixing that up.

Note to Ma Jie: I changed the encoding of the libhttpd files to UTF-8!
(This affects only the (C) glyph.) Thanks a lot for your awesome work on
Poorman, it's really appreciated!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 21:03:19 +00:00

34 lines
606 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
#ifdef __cplusplus
extern "C"
void poorman_log(
const char* msg,
bool needTimeHeader = true,
in_addr_t addr = INADDR_NONE,
rgb_color color = BLACK
);
#else //c version is for libhttpd
void poorman_log(
const char* msg,
bool needTimeHeader,
in_addr_t addr,
rgb_color color
);
#endif
#endif // POOR_MAN_LOG_H