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 file source is a taper source (see taper-source.h)
21 used for the case where we are reading from the holding disk
25 #include <glib-object.h>
27 #include "taper-source.h"
29 #ifndef __TAPER_FILE_SOURCE_H__
30 #define __TAPER_FILE_SOURCE_H__
33 * Type checking and casting macros
35 #define TAPER_TYPE_FILE_SOURCE (taper_file_source_get_type())
36 #define TAPER_FILE_SOURCE(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), taper_file_source_get_type(), TaperFileSource)
37 #define TAPER_FILE_SOURCE_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), taper_file_source_get_type(), TaperFileSource const)
38 #define TAPER_FILE_SOURCE_CLASS(klass) G_TYPE_CHECK_CLASS_CAST((klass), taper_file_source_get_type(), TaperFileSourceClass)
39 #define TAPER_IS_FILE_SOURCE(obj) G_TYPE_CHECK_INSTANCE_TYPE((obj), taper_file_source_get_type ())
41 #define TAPER_FILE_SOURCE_GET_CLASS(obj) G_TYPE_INSTANCE_GET_CLASS((obj), taper_file_source_get_type(), TaperFileSourceClass)
43 /* Private structure type */
44 typedef struct _TaperFileSourcePrivate TaperFileSourcePrivate;
47 * Main object structure
49 #ifndef __TYPEDEF_TAPER_FILE_SOURCE__
50 #define __TYPEDEF_TAPER_FILE_SOURCE__
51 typedef struct _TaperFileSource TaperFileSource;
53 struct _TaperFileSource {
54 TaperSource __parent__;
56 char * holding_disk_file;
57 TaperFileSourcePrivate *_priv;
63 typedef struct _TaperFileSourceClass TaperFileSourceClass;
64 struct _TaperFileSourceClass {
65 TaperSourceClass __parent__;
72 GType taper_file_source_get_type (void);