7dc062e1bc609a5688840edbbc4ad0843dc1671d
[debian/amanda] / server-src / taper-mem-port-source.h
1 /*
2  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
3  * Copyright (c) 2005-2008 Zmanda Inc.
4  *
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.
9  *
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.
14  *
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
18  */
19
20 /* The taper memory 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 an in-memory buffer to hold split dump parts. */
23
24 #include <glib.h>
25 #include <glib-object.h>
26
27 #include "taper-port-source.h"
28
29 #ifndef __TAPER_MEM_PORT_SOURCE_H__
30 #define __TAPER_MEM_PORT_SOURCE_H__
31
32
33 /*
34  * Type checking and casting macros
35  */
36 #define TAPER_TYPE_MEM_PORT_SOURCE      (taper_mem_port_source_get_type())
37 #define TAPER_MEM_PORT_SOURCE(obj)      G_TYPE_CHECK_INSTANCE_CAST((obj), taper_mem_port_source_get_type(), TaperMemPortSource)
38 #define TAPER_MEM_PORT_SOURCE_CONST(obj)        G_TYPE_CHECK_INSTANCE_CAST((obj), taper_mem_port_source_get_type(), TaperMemPortSource const)
39 #define TAPER_MEM_PORT_SOURCE_CLASS(klass)      G_TYPE_CHECK_CLASS_CAST((klass), taper_mem_port_source_get_type(), TaperMemPortSourceClass)
40 #define TAPER_IS_MEM_PORT_SOURCE(obj)   G_TYPE_CHECK_INSTANCE_TYPE((obj), taper_mem_port_source_get_type ())
41
42 #define TAPER_MEM_PORT_SOURCE_GET_CLASS(obj)    G_TYPE_INSTANCE_GET_CLASS((obj), taper_mem_port_source_get_type(), TaperMemPortSourceClass)
43
44 /* Private structure type */
45 typedef struct _TaperMemPortSourcePrivate TaperMemPortSourcePrivate;
46
47 /*
48  * Main object structure
49  */
50 #ifndef __TYPEDEF_TAPER_MEM_PORT_SOURCE__
51 #define __TYPEDEF_TAPER_MEM_PORT_SOURCE__
52 typedef struct _TaperMemPortSource TaperMemPortSource;
53 #endif
54 struct _TaperMemPortSource {
55     TaperPortSource __parent__;
56     /*< private >*/
57     TaperMemPortSourcePrivate *_priv;
58 };
59
60 /*
61  * Class definition
62  */
63 typedef struct _TaperMemPortSourceClass TaperMemPortSourceClass;
64 struct _TaperMemPortSourceClass {
65         TaperPortSourceClass __parent__;
66 };
67
68
69 /*
70  * Public methods
71  */
72 GType   taper_mem_port_source_get_type  (void);
73
74 #endif