2 * Amanda, The Advanced Maryland Automatic Network Disk Archiver
3 * Copyright (c) 2005-2008 Zmanda Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 /* The taper disk port source is a taper source (see taper-source.h)
21 used for the case where we are reading directly from a client
22 (PORT-WRITE) and are using a disk buffer to hold split dump parts. */
25 #include <glib-object.h>
27 #include "taper-port-source.h"
29 #ifndef __TAPER_DISK_PORT_SOURCE_H__
30 #define __TAPER_DISK_PORT_SOURCE_H__
34 * Type checking and casting macros
36 #define TAPER_TYPE_DISK_PORT_SOURCE (taper_disk_port_source_get_type())
37 #define TAPER_DISK_PORT_SOURCE(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), taper_disk_port_source_get_type(), TaperDiskPortSource)
38 #define TAPER_DISK_PORT_SOURCE_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), taper_disk_port_source_get_type(), TaperDiskPortSource const)
39 #define TAPER_DISK_PORT_SOURCE_CLASS(klass) G_TYPE_CHECK_CLASS_CAST((klass), taper_disk_port_source_get_type(), TaperDiskPortSourceClass)
40 #define TAPER_IS_DISK_PORT_SOURCE(obj) G_TYPE_CHECK_INSTANCE_TYPE((obj), taper_disk_port_source_get_type ())
42 #define TAPER_DISK_PORT_SOURCE_GET_CLASS(obj) G_TYPE_INSTANCE_GET_CLASS((obj), taper_disk_port_source_get_type(), TaperDiskPortSourceClass)
44 /* Private structure type */
45 typedef struct _TaperDiskPortSourcePrivate TaperDiskPortSourcePrivate;
48 * Main object structure
50 #ifndef __TYPEDEF_TAPER_DISK_PORT_SOURCE__
51 #define __TYPEDEF_TAPER_DISK_PORT_SOURCE__
52 typedef struct _TaperDiskPortSource TaperDiskPortSource;
54 struct _TaperDiskPortSource {
55 TaperPortSource __parent__;
57 guint64 fallback_buffer_size;
58 char * buffer_dir_name;
59 TaperDiskPortSourcePrivate *_priv;
65 typedef struct _TaperDiskPortSourceClass TaperDiskPortSourceClass;
66 struct _TaperDiskPortSourceClass {
67 TaperPortSourceClass __parent__;
73 GType taper_disk_port_source_get_type (void);