1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 
3 /*
4  *  File-Roller
5  *
6  *  Copyright (C) 2012 The Free Software Foundation, Inc.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef FR_COMMAND_UNARCHIVER_H
23 #define FR_COMMAND_UNARCHIVER_H
24 
25 #include <glib.h>
26 #include "file-data.h"
27 #include "fr-command.h"
28 #include "fr-process.h"
29 
30 #define FR_TYPE_COMMAND_UNARCHIVER            (fr_command_unarchiver_get_type ())
31 #define FR_COMMAND_UNARCHIVER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), FR_TYPE_COMMAND_UNARCHIVER, FrCommandUnarchiver))
32 #define FR_COMMAND_UNARCHIVER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), FR_TYPE_COMMAND_UNARCHIVER, FrCommandUnarchiverClass))
33 #define FR_IS_COMMAND_UNARCHIVER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FR_TYPE_COMMAND_UNARCHIVER))
34 #define FR_IS_COMMAND_UNARCHIVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FR_TYPE_COMMAND_UNARCHIVER))
35 #define FR_COMMAND_UNARCHIVER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), FR_TYPE_COMMAND_UNARCHIVER, FrCommandUnarchiverClass))
36 
37 typedef struct _FrCommandUnarchiver       FrCommandUnarchiver;
38 typedef struct _FrCommandUnarchiverClass  FrCommandUnarchiverClass;
39 
40 struct _FrCommandUnarchiver
41 {
42 	FrCommand  __parent;
43 
44 	GInputStream *stream;
45 	int           n_line;
46 };
47 
48 struct _FrCommandUnarchiverClass
49 {
50 	FrCommandClass __parent_class;
51 };
52 
53 GType fr_command_unarchiver_get_type (void);
54 
55 #endif /* FR_COMMAND_UNARCHIVER_H */
56