/*
libparted - a library for manipulating disk partitions
Copyright (C) 2004-2005, 2007, 2009-2010 Free Software Foundation,
Inc.
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef _CACHE_H
#define _CACHE_H
#include "hfs.h"
/* CR => CACHE REF */
/* 16 -> 31 || high order bit */ /* reserved */
/* tuning */
/* to get the index of the linked list */
file_number + CR_ADD_CST */
by this value to allocate next tables */
/* See DOC for an explaination of this structure */
/* Access read only from outside cache.c */
struct _HfsCPrivateExtent {
};
/* Internaly used by cache.c for custom memory managment only */
struct _HfsCPrivateCacheTable {
unsigned int table_size;
unsigned int table_first_free;
/* first_elemt ? */
};
/* Internaly used by cache.c for custom memory managment
and cache handling only */
struct _HfsCPrivateCache {
unsigned int linked_ref_size;
unsigned int block_number;
unsigned int first_cachetable_size;
unsigned int needed_alloc_size;
};
void
static __inline__ unsigned int
{
return cache->needed_alloc_size;
}
#endif /* _CACHE_H */