6 * Copyright (C) 2010 SIPE Project <http://sipe.sourceforge.net/>
7 * Copyright (C) 2010 Jakub Adam <jakub.adam@ktknet.cz>
8 * Copyright (C) 2010 Tomáš Hrabčík <tomas.hrabcik@tieto.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #include "newpluginapi.h"
31 #include "m_protosvc.h"
32 #include "m_protoint.h"
34 #include "sipe-common.h"
35 #include "sipe-backend.h"
36 #include "sipe-core.h"
38 #include "miranda-private.h"
40 struct sipe_backend_file_transfer
{
44 void sipe_backend_ft_error(struct sipe_file_transfer
*ft
,
50 const gchar
*sipe_backend_ft_get_error(SIPE_UNUSED_PARAMETER
struct sipe_file_transfer
*ft
)
56 void sipe_backend_ft_deallocate(struct sipe_file_transfer
*ft
)
61 gssize
sipe_backend_ft_read(struct sipe_file_transfer
*ft
,
69 gssize
sipe_backend_ft_write(struct sipe_file_transfer
*ft
,
77 void sipe_backend_ft_cancel_local(struct sipe_file_transfer
*ft
)
82 void sipe_backend_ft_cancel_remote(struct sipe_file_transfer
*ft
)
87 void sipe_backend_ft_incoming(struct sipe_core_public
*sipe_public
,
88 struct sipe_file_transfer
*ft
,
90 const gchar
*file_name
,
96 gboolean
sipe_backend_ft_incoming_accept(struct sipe_file_transfer
*ft
,
98 unsigned short port_min
,
99 unsigned short port_max
)