mirror of
https://github.com/haiwen/ccnet-server.git
synced 2025-09-06 15:20:18 +00:00
Initial commit of Ccnet server.
This commit is contained in:
35
lib/include.h
Normal file
35
lib/include.h
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "libccnet_utils.h"
|
||||
#include <ccnet/valid-check.h>
|
||||
|
||||
#ifndef ccnet_warning
|
||||
#define ccnet_warning(fmt, ...) g_warning( "%s: " fmt, __func__ , ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#ifndef ccnet_error
|
||||
#define ccnet_error(fmt, ...) g_error( "%s: " fmt, __func__ , ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#ifndef ccnet_message
|
||||
#define ccnet_message(fmt, ...) g_message(fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#ifndef ccnet_debug
|
||||
#define ccnet_debug(fmt, ...) g_debug(fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#define CCNET_DOMAIN g_quark_from_string("ccnet")
|
||||
|
||||
#ifndef ENABLE_DEBUG
|
||||
#undef g_debug
|
||||
#define g_debug(...)
|
||||
#endif
|
Reference in New Issue
Block a user