Port pamusb-agent and pamusb-conf to UDisks.
[pam_usb.git] / src / log.h
blob7c779e8c864c04e7e3085ab21095e7f3d54bcdf5
1 /*
2 * Copyright (c) 2003-2007 Andrea Luzzardi <scox@sig11.org>
4 * This file is part of the pam_usb project. pam_usb is free software;
5 * you can redistribute it and/or modify it under the terms of the GNU General
6 * Public License version 2, as published by the Free Software Foundation.
8 * pam_usb is distributed in the hope that it will be useful, but WITHOUT ANY
9 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11 * details.
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 * Place, Suite 330, Boston, MA 02111-1307 USA
18 #ifndef PUSB_LOG_H_
19 # define PUSB_LOG_H_
20 # define log_debug(s, ...) __log_debug(__FILE__, __LINE__, s, ##__VA_ARGS__)
21 # include "conf.h"
23 void __log_debug(const char *file, int line, const char *fmt, ...);
24 void log_error(const char *fmt, ...);
25 void log_info(const char *fmt, ...);
26 void pusb_log_init(t_pusb_options *opts);
29 #endif /* !PUSB_LOG_H_ */