UbixOS V2
2.0
dirCache.h
Go to the documentation of this file.
1
/*-
2
* Copyright (c) 2002-2018 The UbixOS Project.
3
* All rights reserved.
4
*
5
* This was developed by Christopher W. Olsen for the UbixOS Project.
6
*
7
* Redistribution and use in source and binary forms, with or without modification, are permitted
8
* provided that the following conditions are met:
9
*
10
* 1) Redistributions of source code must retain the above copyright notice, this list of
11
* conditions, the following disclaimer and the list of authors.
12
* 2) Redistributions in binary form must reproduce the above copyright notice, this list of
13
* conditions, the following disclaimer and the list of authors in the documentation and/or
14
* other materials provided with the distribution.
15
* 3) Neither the name of the UbixOS Project nor the names of its contributors may be used to
16
* endorse or promote products derived from this software without specific prior written
17
* permission.
18
*
19
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
20
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
22
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
24
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
*/
28
29
#ifndef _UBIXFS_DIRCACHE_H
30
#define _UBIXFS_DIRCACHE_H
31
32
/* #include "ubixfs.h" */
33
#include <
sys/types.h
>
34
35
struct
cacheNode
{
36
char
*
name
;
37
struct
cacheNode
*
prev
;
38
struct
cacheNode
*
next
;
39
struct
cacheNode
*
parent
;
40
struct
cacheNode
*
fileListHead
;
41
struct
cacheNode
*
fileListTail
;
42
void
*
info
;
43
int
*
size
;
44
int
present
;
45
int
dirty
;
46
uInt32
*
startCluster
;
47
uInt16
*
attributes
;
48
uInt16
*
permissions
;
49
};
50
/* cacheNode */
51
52
struct
cacheNode
*
ubixfs_cacheFind
(
struct
cacheNode
*,
char
*);
53
struct
cacheNode
*
ubixfs_cacheNew
(
const
char
*);
54
void
ubixfs_cacheDelete
(
struct
cacheNode
**);
55
struct
cacheNode
*
ubixfs_cacheAdd
(
struct
cacheNode
*,
struct
cacheNode
*);
56
57
#endif
/* END _UBIXFS_DIRCACHE_H */
cacheNode::dirty
int dirty
Definition:
dirCache.h:45
uInt32
unsigned long int uInt32
Definition:
objgfx30.h:49
uInt16
unsigned short int uInt16
Definition:
objgfx30.h:48
cacheNode::info
void * info
Definition:
dirCache.h:42
types.h
cacheNode::prev
struct cacheNode * prev
Definition:
dirCache.h:37
ubixfs_cacheNew
struct cacheNode * ubixfs_cacheNew(const char *)
Definition:
dirCache.c:193
ubixfs_cacheFind
struct cacheNode * ubixfs_cacheFind(struct cacheNode *, char *)
Definition:
dirCache.c:55
cacheNode::fileListHead
struct cacheNode * fileListHead
Definition:
dirCache.h:40
cacheNode::parent
struct cacheNode * parent
Definition:
dirCache.h:39
cacheNode::permissions
uInt16 * permissions
Definition:
dirCache.h:48
cacheNode::fileListTail
struct cacheNode * fileListTail
Definition:
dirCache.h:41
cacheNode::startCluster
uInt32 * startCluster
Definition:
dirCache.h:46
cacheNode::present
int present
Definition:
dirCache.h:44
cacheNode::size
int * size
Definition:
dirCache.h:43
cacheNode::attributes
uInt16 * attributes
Definition:
dirCache.h:47
ubixfs_cacheAdd
struct cacheNode * ubixfs_cacheAdd(struct cacheNode *, struct cacheNode *)
Definition:
dirCache.c:252
ubixfs_cacheDelete
void ubixfs_cacheDelete(struct cacheNode **)
Definition:
dirCache.c:210
cacheNode::name
char * name
Definition:
dirCache.h:36
cacheNode::next
struct cacheNode * next
Definition:
dirCache.h:38
cacheNode
Definition:
dirCache.h:35
C:
Dev
git
UbixOS
sys
include
ubixfs
dirCache.h
Generated by
1.8.16