Sync up miranda files with current libsipe branch
[siplcs.git] / src / miranda / miranda-ft.c
blobf629344f9016a851a63c262d5263ff4e26b6f0f9
1 /**
2 * @file miranda-ft.c
4 * pidgin-sipe
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
25 #include <windows.h>
26 #include <stdio.h>
28 #include <glib.h>
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"
37 #include "sipe-nls.h"
38 #include "miranda-private.h"
40 struct sipe_backend_file_transfer {
41 int dummy;
44 void sipe_backend_ft_error(struct sipe_file_transfer *ft,
45 const gchar *errmsg)
47 _NIF();
50 const gchar *sipe_backend_ft_get_error(SIPE_UNUSED_PARAMETER struct sipe_file_transfer *ft)
52 _NIF();
53 return NULL;
56 void sipe_backend_ft_deallocate(struct sipe_file_transfer *ft)
58 _NIF();
61 gssize sipe_backend_ft_read(struct sipe_file_transfer *ft,
62 guchar *data,
63 gsize size)
65 _NIF();
66 return 0;
69 gssize sipe_backend_ft_write(struct sipe_file_transfer *ft,
70 const guchar *data,
71 gsize size)
73 _NIF();
74 return 0;
77 void sipe_backend_ft_cancel_local(struct sipe_file_transfer *ft)
79 _NIF();
82 void sipe_backend_ft_cancel_remote(struct sipe_file_transfer *ft)
84 _NIF();
87 void sipe_backend_ft_incoming(struct sipe_core_public *sipe_public,
88 struct sipe_file_transfer *ft,
89 const gchar *who,
90 const gchar *file_name,
91 gsize file_size)
93 _NIF();
96 gboolean sipe_backend_ft_incoming_accept(struct sipe_file_transfer *ft,
97 const gchar *ip,
98 unsigned short port_min,
99 unsigned short port_max)
101 _NIF();
102 return FALSE;
107 Local Variables:
108 mode: c
109 c-file-style: "bsd"
110 indent-tabs-mode: t
111 tab-width: 8
112 End: