1 /***************************************************************************
2 * Copyright (C) 2007 International Business Machines Corp. *
3 * All Rights Reserved. *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21 * Klaus Heinrich Kiwi <klausk@br.ibm.com> *
22 ***************************************************************************/
24 #ifndef _ZOS_REMOTE_LOG_H
25 #define _ZOS_REMOTE_LOG_H
27 #include "zos-remote-ldap.h"
30 #include <sys/types.h>
36 void log_err(const char *, ...);
37 void log_warn(const char *, ...);
38 void log_info(const char *, ...);
39 void _log_debug(const char *, ...);
40 void _debug_bv(struct berval *);
41 void _debug_ber(BerElement *);
45 #define log_debug(fmt, ...) _log_debug(fmt, ## __VA_ARGS__)
46 #define debug_bv(bv) _debug_bv(bv)
47 #define debug_ber(ber) _debug_ber(ber)
51 #define log_debug(fmt, ...)
53 #define debug_ber(ber)
58 #endif /* _ZOS_REMOTE_LOG_H */