compat.h

00001 /* 
00002  * Copyright (c) 2005-2012 by KoanLogic s.r.l. - All rights reserved.  
00003  */
00004 
00005 #ifndef _LIBU_COMPAT_H_
00006 #define _LIBU_COMPAT_H_
00007 
00008 #include <u/libu_conf.h>
00009 
00010 #ifdef LIBU_1X_COMPAT
00011 
00012 /* enable compatibility layer with the 1.X branch */ 
00013 
00014 /* carpal module */
00015 #define con(...)    u_con(__VA_ARGS__)
00016 #define dbg(...)    u_dbg(__VA_ARGS__)
00017 #define info(...)   u_info(__VA_ARGS__)
00018 #define notice(...) u_notice(__VA_ARGS__)
00019 #define warn(...)   u_warn(__VA_ARGS__)
00020 #define err(...)    u_err(__VA_ARGS__)
00021 #define crit(...)   u_crit(__VA_ARGS__)
00022 #define alert(...)  u_alert(__VA_ARGS__)
00023 #define emerg(...)  u_emerg(__VA_ARGS__)
00024 
00025 /* uri module */
00026 #define u_uri_parse(s, pu)  u_uri_crumble(s, 0, pu)
00027 
00028 /* net module */
00029 #define u_net_sock(uri, mode)   u_net_sd(uri, mode, 0)
00030 
00031 #endif  /* LIBU_1X_COMPAT */
00032 
00033 #endif  /* !_LIBU_COMPAT_H_ */

←Products
© 2005-2012 - KoanLogic S.r.l. - All rights reserved