X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device-src%2Fxfer-dest-taper.c;h=88ef24785ef9b28e2185f2df6f79d1c0e9c75d57;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hp=6d961a2eb232a505a38bb7b74325ac7998c3b7d6;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/device-src/xfer-dest-taper.c b/device-src/xfer-dest-taper.c index 6d961a2..88ef247 100644 --- a/device-src/xfer-dest-taper.c +++ b/device-src/xfer-dest-taper.c @@ -1,6 +1,6 @@ /* * Amanda, The Advanced Maryland Automatic Network Disk Archiver - * Copyright (c) 2009 Zmanda, Inc. All Rights Reserved. + * Copyright (c) 2009, 2010 Zmanda, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published @@ -22,13 +22,40 @@ #include "amanda.h" #include "xfer-device.h" +static GObjectClass *parent_class = NULL; + +/* + * Method implementation + */ + +static void +cache_inform_impl( + XferDestTaper *self G_GNUC_UNUSED, + const char *filename G_GNUC_UNUSED, + off_t offset G_GNUC_UNUSED, + off_t length G_GNUC_UNUSED) +{ + /* do nothing */ +} + +static void +instance_init( + XferElement *elt) +{ + elt->can_generate_eof = FALSE; +} + static void class_init( XferDestTaperClass * selfc) { XferElementClass *klass = XFER_ELEMENT_CLASS(selfc); + selfc->cache_inform = cache_inform_impl; + klass->perl_class = "Amanda::Xfer::Dest::Taper"; + + parent_class = g_type_class_peek_parent(selfc); } GType @@ -46,7 +73,7 @@ xfer_dest_taper_get_type (void) NULL /* class_data */, sizeof (XferDestTaper), 0 /* n_preallocs */, - (GInstanceInitFunc) NULL, + (GInstanceInitFunc) instance_init, NULL };