File: namespace.h

package info (click to toggle)
avfs 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,916 kB
  • sloc: ansic: 31,364; sh: 6,482; perl: 1,916; makefile: 351
file content (29 lines) | stat: -rw-r--r-- 1,237 bytes parent folder | download | duplicates (8)
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
/*
    AVFS: A Virtual File System Library
    Copyright (C) 1998-2001  Miklos Szeredi <miklos@szeredi.hu>

    This program can be distributed under the terms of the GNU GPL.
    See the file COPYING.
*/

#define NSF_NOCASE (1 << 0) /* for case-insensitive key comparisons */

struct namespace;
struct entry;

struct namespace *av_namespace_new();
struct entry *av_namespace_lookup(struct namespace *ns, struct entry *parent,
                                    const char *name);
struct entry *av_namespace_lookup_all(struct namespace *ns, struct entry *prev,
                               const char *name);
struct entry *av_namespace_resolve(struct namespace *ns, const char *path);
char *av_namespace_getpath(struct entry *ent);
void av_namespace_set(struct entry *ent, void *data);
void *av_namespace_get(struct entry *ent);
char *av_namespace_name(struct entry *ent);
struct entry *av_namespace_next(struct entry *ent);
struct entry *av_namespace_subdir(struct namespace *ns, struct entry *ent);
struct entry *av_namespace_parent(struct entry *ent);
void av_namespace_setflags(struct entry *ent, int setflags, int resetflags);
struct entry *av_namespace_nth(struct namespace *ns, struct entry *parent,
			       unsigned int n);