diff options
author | Perberos <[email protected]> | 2011-11-09 22:53:33 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-09 22:53:33 -0300 |
commit | 70438138096a47b2505ac55634cd94947ce378b6 (patch) | |
tree | e45e49dda10a71616466500a4ab65d1c54b5f6c1 /src/open-file.h | |
download | engrampa-70438138096a47b2505ac55634cd94947ce378b6.tar.bz2 engrampa-70438138096a47b2505ac55634cd94947ce378b6.tar.xz |
initial
Diffstat (limited to 'src/open-file.h')
-rw-r--r-- | src/open-file.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/open-file.h b/src/open-file.h new file mode 100644 index 0000000..605f25e --- /dev/null +++ b/src/open-file.h @@ -0,0 +1,48 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + +/* + * File-Roller + * + * 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 02111-1307, 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 */ |