callback.h

Go to the documentation of this file.
00001 /*
00002  *  callback.h
00003  *
00004  *  Copyright (c) 2002-2007 by Judd Vinet <jvinet@zeroflux.org>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 #ifndef _PM_CALLBACK_H
00020 #define _PM_CALLBACK_H
00021 
00022 #include <alpm.h>
00023 
00024 /* callback to handle messages/notifications from libalpm transactions */
00025 void cb_trans_evt(pmtransevt_t event, void *data1, void *data2);
00026 
00027 /* callback to handle questions from libalpm transactions (yes/no) */
00028 void cb_trans_conv(pmtransconv_t event, void *data1, void *data2,
00029                    void *data3, int *response);
00030 
00031 /* callback to handle display of transaction progress */
00032 void cb_trans_progress(pmtransprog_t event, const char *pkgname, int percent,
00033                    int howmany, int remain);
00034 
00035 /* callback to handle display of download progress */
00036 void cb_dl_progress(const char *filename, int file_xfered, int file_total,
00037         int list_xfered, int list_total);
00038 
00039 /* callback to handle messages/notifications from pacman library */
00040 void cb_log(pmloglevel_t level, char *fmt, va_list args);
00041 
00042 #endif /* _PM_CALLBACK_H */
00043 
00044 /* vim: set ts=2 sw=2 noet: */

Generated on Mon Jan 14 23:53:39 2008 for libalpm by  doxygen 1.5.4