uploaded spice-vdagent
[platform/adaptation/emulator/spice-vdagent.git] / src / vdagent-file-xfers.h
1 /*  vdagent file xfers header
2
3     Copyright 2013 Red Hat, Inc.
4
5     Red Hat Authors:
6     Hans de Goede <hdegoede@redhat.com>
7
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 3 of the License, or   
11     (at your option) any later version.
12
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.
17
18     You should have received a copy of the GNU General Public License
19     along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef __VDAGENT_FILE_XFERS_H
23 #define __VDAGENT_FILE_XFERS_H
24
25 #include "udscs.h"
26
27 struct vdagent_file_xfers;
28
29 struct vdagent_file_xfers *vdagent_file_xfers_create(
30         struct udscs_connection *vdagentd, const char *save_dir,
31         int open_save_dir, int debug);
32 void vdagent_file_xfers_destroy(struct vdagent_file_xfers *xfer);
33
34 void vdagent_file_xfers_start(struct vdagent_file_xfers *xfers,
35     VDAgentFileXferStartMessage *msg);
36 void vdagent_file_xfers_status(struct vdagent_file_xfers *xfers,
37     VDAgentFileXferStatusMessage *msg);
38 void vdagent_file_xfers_data(struct vdagent_file_xfers *xfers,
39     VDAgentFileXferDataMessage *msg);
40
41 #endif