2 * Copyright (c) 2009, 2010 Zmanda, Inc. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published
6 * by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * Contact information: Zmanda Inc., 465 S. Mathilda Ave., Suite 300
18 * Sunnyvale, CA 94085, USA, or: http://www.zmanda.com
21 %module "Amanda::XferServer"
22 %include "amglue/amglue.swg"
23 %include "exception.i"
24 %import "Amanda/Xfer.swg"
25 %import "Amanda/Device.swg"
26 %import "Amanda/Header.swg"
28 %include "Amanda/XferServer.pod"
31 #include "glib-util.h"
33 #include "xfer-device.h"
34 #include "xfer-server.h"
37 %newobject xfer_source_device;
38 XferElement *xfer_source_device(
41 %newobject xfer_dest_device;
42 XferElement *xfer_dest_device(
46 %newobject xfer_source_holding;
47 XferElement * xfer_source_holding(
48 const char *filename);
50 %newobject xfer_dest_taper_splitter;
51 XferElement *xfer_dest_taper_splitter(
55 gboolean use_mem_cache,
56 const char *disk_cache_dirname);
58 %newobject xfer_dest_taper_directtcp;
59 XferElement *xfer_dest_taper_directtcp(
63 void xfer_dest_taper_start_part(
68 void xfer_dest_taper_use_device(
72 void xfer_dest_taper_cache_inform(
78 guint64 xfer_dest_taper_get_part_bytes_written(
81 %newobject xfer_source_recovery;
82 XferElement *xfer_source_recovery(Device *first_device);
84 void xfer_source_recovery_start_part(
88 void xfer_source_recovery_use_device(
94 PACKAGE(Amanda::Xfer::Source::Device)
95 XFER_ELEMENT_SUBCLASS()
96 DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_source_device)
100 PACKAGE(Amanda::Xfer::Dest::Device)
101 XFER_ELEMENT_SUBCLASS()
102 DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_dest_device)
106 PACKAGE(Amanda::Xfer::Source::Holding)
107 XFER_ELEMENT_SUBCLASS()
108 DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_source_holding)
112 PACKAGE(Amanda::Xfer::Dest::Taper)
113 XFER_ELEMENT_SUBCLASS()
114 DECLARE_METHOD(use_device, Amanda::XferServer::xfer_dest_taper_use_device)
115 DECLARE_METHOD(start_part, Amanda::XferServer::xfer_dest_taper_start_part)
116 DECLARE_METHOD(cache_inform, Amanda::XferServer::xfer_dest_taper_cache_inform)
117 DECLARE_METHOD(get_part_bytes_written, Amanda::XferServer::xfer_dest_taper_get_part_bytes_written)
121 PACKAGE(Amanda::Xfer::Dest::Taper::Splitter)
122 XFER_ELEMENT_SUBCLASS_OF(Amanda::Xfer::Dest::Taper)
123 DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_dest_taper_splitter)
127 PACKAGE(Amanda::Xfer::Dest::Taper::DirectTCP)
128 XFER_ELEMENT_SUBCLASS_OF(Amanda::Xfer::Dest::Taper)
129 DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_dest_taper_directtcp)
133 PACKAGE(Amanda::Xfer::Source::Recovery)
134 XFER_ELEMENT_SUBCLASS()
135 DECLARE_CONSTRUCTOR(Amanda::XferServer::xfer_source_recovery)
136 DECLARE_METHOD(start_part, Amanda::XferServer::xfer_source_recovery_start_part)
137 DECLARE_METHOD(use_device, Amanda::XferServer::xfer_source_recovery_use_device)