00001 /* 00002 * $Id: bh_upload.h 13345 2007-04-16 20:18:13Z cbiere $ 00003 * 00004 * Copyright (c) 2005, Christian Biere & Raphael Manfredi 00005 * 00006 *---------------------------------------------------------------------- 00007 * This file is part of gtk-gnutella. 00008 * 00009 * gtk-gnutella is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * gtk-gnutella is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with gtk-gnutella; if not, write to the Free Software 00021 * Foundation, Inc.: 00022 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 *---------------------------------------------------------------------- 00024 */ 00025 00037 #ifndef _core_bh_upload_h_ 00038 #define _core_bh_upload_h_ 00039 00040 #include "common.h" 00041 00042 #include "special_upload.h" 00043 00047 #define BH_VERSION_MAJOR 1 00048 #define BH_VERSION_MINOR 0 00049 00054 enum { 00055 BH_F_DEFLATE = 1 << 0, 00056 BH_F_GZIP = 1 << 1, 00057 BH_F_CHUNKED = 1 << 2, 00058 BH_F_HTML = 1 << 3, 00059 BH_F_QHITS = 1 << 4 00060 }; 00061 00062 struct gnutella_host; 00063 struct tx_deflate_cb; 00064 struct tx_link_cb; 00065 struct wrap_io; 00066 00067 struct special_upload *browse_host_open( 00068 gpointer owner, 00069 struct gnutella_host *host, 00070 special_upload_writable_t writable, 00071 const struct tx_deflate_cb *deflate_cb, 00072 const struct tx_link_cb *link_cb, 00073 struct wrap_io *wio, 00074 gint flags); 00075 00076 #endif /* _core_bh_upload_h_ */ 00077 00078 /* vi: set ts=4 sw=4 cindent: */
1.3.9.1