3 * Purple is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * Component written by Tomek Wasilczyk (http://www.wasilczyk.pl).
9 * This file is dual-licensed under the GPL2+ and the X11 (MIT) licences.
10 * As a recipient of this file you may choose, which license to receive the
11 * code under. As a contributor, you have to ensure the new code is
12 * compatible with both.
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
29 #ifndef PURPLE_GG_EDISC_H
30 #define PURPLE_GG_EDISC_H
34 typedef struct _ggp_edisc_session_data ggp_edisc_session_data
;
38 #define GGP_TYPE_XFER (ggp_xfer_get_type())
39 G_DECLARE_FINAL_TYPE(GGPXfer
, ggp_xfer
, GGP
, XFER
, PurpleXfer
);
41 void ggp_xfer_register(GTypeModule
*module
);
44 void ggp_edisc_setup(PurpleConnection
*gc
);
45 void ggp_edisc_cleanup(PurpleConnection
*gc
);
47 /* General xfer functions. */
48 void ggp_edisc_xfer_ticket_changed(PurpleConnection
*gc
,
52 gboolean
ggp_edisc_xfer_can_receive_file(PurpleProtocolXfer
*prplxfer
, PurpleConnection
*gc
, const char *who
);
53 void ggp_edisc_xfer_send_file(PurpleProtocolXfer
*prplxfer
, PurpleConnection
*gc
, const char *who
,
54 const char *filename
);
55 PurpleXfer
* ggp_edisc_xfer_send_new(PurpleProtocolXfer
*prplxfer
, PurpleConnection
*gc
, const char *who
);
59 #endif /* PURPLE_GG_EDISC_H */