2 * purple - Bonjour Protocol Plugin
4 * Purple is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 #ifndef PURPLE_BONJOUR_BONJOUR_FT_H
23 #define PURPLE_BONJOUR_BONJOUR_FT_H
29 #define XEP_TYPE_XFER (xep_xfer_get_type())
30 G_DECLARE_FINAL_TYPE(XepXfer
, xep_xfer
, XEP
, XFER
, PurpleXfer
);
39 * Create a new PurpleXfer
41 * @param gc The PurpleConnection handle.
42 * @param who Who will we be sending it to?
44 PurpleXfer
*bonjour_new_xfer(PurpleProtocolXfer
*prplxfer
, PurpleConnection
*gc
, const char *who
);
49 * @param gc The PurpleConnection handle.
50 * @param who Who are we sending it to?
51 * @param file What file? If NULL, user will choose after this call.
53 void bonjour_send_file(PurpleProtocolXfer
*prplxfer
, PurpleConnection
*gc
, const char *who
, const char *file
);
55 void xep_si_parse(PurpleConnection
*pc
, PurpleXmlNode
*packet
, PurpleBuddy
*pb
);
56 void xep_bytestreams_parse(PurpleConnection
*pc
, PurpleXmlNode
*packet
, PurpleBuddy
*pb
);
58 void xep_xfer_register(GTypeModule
*module
);
62 #endif /* PURPLE_BONJOUR_BONJOUR_FT_H */