2007-11-24 15:58:36 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Vreixo Formoso
|
2011-01-25 09:50:37 +00:00
|
|
|
* Copyright (c) 2009 - 2011 Thomas Schmitt
|
2007-11-24 15:58:36 +00:00
|
|
|
*
|
|
|
|
* This file is part of the libisofs project; you can redistribute it and/or
|
2010-01-27 05:48:59 +00:00
|
|
|
* modify it under the terms of the GNU General Public License version 2
|
|
|
|
* or later as published by the Free Software Foundation.
|
|
|
|
* See COPYING file for details.
|
2007-11-24 15:58:36 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LIBISO_FSOURCE_H_
|
|
|
|
#define LIBISO_FSOURCE_H_
|
|
|
|
|
|
|
|
/*
|
2008-01-19 16:41:01 +00:00
|
|
|
* Definitions for the file sources. Most functions/structures related with
|
|
|
|
* this were moved to libisofs.h.
|
2007-11-24 15:58:36 +00:00
|
|
|
*/
|
|
|
|
|
2008-01-19 16:41:01 +00:00
|
|
|
#include "libisofs.h"
|
2007-11-24 15:58:36 +00:00
|
|
|
|
2008-01-10 16:22:53 +00:00
|
|
|
#define ISO_LOCAL_FS_ID 1
|
|
|
|
#define ISO_IMAGE_FS_ID 2
|
|
|
|
#define ISO_ELTORITO_FS_ID 3
|
2008-01-11 15:42:18 +00:00
|
|
|
#define ISO_MEM_FS_ID 4
|
2008-02-24 17:20:23 +00:00
|
|
|
#define ISO_FILTER_FS_ID 5
|
2008-01-10 16:22:53 +00:00
|
|
|
|
2007-11-25 18:54:13 +00:00
|
|
|
/**
|
|
|
|
* Create a new IsoFilesystem to deal with local filesystem.
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* 1 sucess, < 0 error
|
|
|
|
*/
|
|
|
|
int iso_local_filesystem_new(IsoFilesystem **fs);
|
2007-11-24 15:58:36 +00:00
|
|
|
|
2009-05-24 16:22:02 +00:00
|
|
|
|
2011-01-25 09:50:37 +00:00
|
|
|
/* Rank two IsoFileSource of ifs_class by their eventual old image LBAs.
|
2009-05-24 16:22:02 +00:00
|
|
|
Other IsoFileSource classes will be ranked only roughly.
|
|
|
|
*/
|
|
|
|
int iso_ifs_sections_cmp(IsoFileSource *s1, IsoFileSource *s2, int flag);
|
|
|
|
|
2011-01-25 09:50:37 +00:00
|
|
|
|
|
|
|
/* Create an independent copy of an ifs_class IsoFileSource.
|
|
|
|
*/
|
|
|
|
int iso_ifs_source_clone(IsoFileSource *old_source, IsoFileSource **new_source,
|
|
|
|
int flag);
|
|
|
|
|
|
|
|
|
2007-11-24 15:58:36 +00:00
|
|
|
#endif /*LIBISO_FSOURCE_H_*/
|