summaryrefslogtreecommitdiff
path: root/src/open-file.h
blob: e28be8bf4b50485ccee3ef0e6835fdb874ac612a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/*
 *  Engrampa
 *
 *  Copyright (C) 2001-2008 The Free Software Foundation, Inc.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02110-1301, USA.
 */

#ifndef OPEN_FILE_H
#define OPEN_FILE_H

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <time.h>

typedef struct {
	char         *path;
	char         *extracted_uri;
	char         *temp_dir;
	time_t        last_modified;
	GFileMonitor *monitor;
} OpenFile;

#define FR_TYPE_OPEN_FILE (open_file_get_type ())

GType       open_file_get_type (void);
OpenFile *  open_file_new      (const char *path,
			        const char *extracted_path,
			        const char *temp_dir);
OpenFile *  open_file_copy     (OpenFile   *src);
void        open_file_free     (OpenFile   *ofile);

#endif /* OPEN_FILE_H */