File: key_common.h

package info (click to toggle)
reiser4progs 1.2.2-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 5,904 kB
  • sloc: ansic: 34,331; sh: 4,251; makefile: 994
file content (37 lines) | stat: -rw-r--r-- 929 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
30
31
32
33
34
35
36
37
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
   reiser4progs/COPYING.
   
   key_common.h -- reiser4 common for all keys functions. */

#ifndef KEY_COMMON_H
#define KEY_COMMON_H

#include <aal/libaal.h>
#include <aux/aux.h>
#include <reiser4/plugin.h>

typedef enum {
	/* File name key type */
	KEY_FILENAME_MINOR = 0,
    
	/* Stat-data key type */
	KEY_STATDATA_MINOR = 1,
    
	/* File attribute name */
	KEY_ATTRNAME_MINOR = 2,
    
	/* File attribute value */
	KEY_ATTRBODY_MINOR = 3,
    
	/* File body (tail or extent) */
	KEY_FILEBODY_MINOR = 4,
	KEY_LAST_MINOR
} key_minor_t;

extern key_minor_t key_common_type2minor(key_type_t type);
extern key_type_t key_common_minor2type(key_minor_t minor);
extern const char *key_common_minor2name(key_minor_t type);
extern reiser4_key_t *key_common_minimal(reiser4_key_plug_t *plug);
extern reiser4_key_t *key_common_maximal(reiser4_key_plug_t *plug);

#endif