File: nodeptr40.h

package info (click to toggle)
reiser4progs 1.0.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,348 kB
  • ctags: 3,714
  • sloc: ansic: 33,468; sh: 8,489; makefile: 1,012
file content (24 lines) | stat: -rw-r--r-- 511 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
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
   reiser4progs/COPYING.
   
   nodeptr40.h -- reiser4 nodeptr item structures. */

#ifndef NODEPTR40_H
#define NODEPTR40_H

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

extern reiser4_core_t *nodeptr40_core;

typedef struct nodeptr40 {
	d64_t ptr;
} nodeptr40_t;

#define nodeptr40_body(place) ((nodeptr40_t *)place->body)

#define np40_get_ptr(np)	aal_get_le64(np, ptr)
#define np40_set_ptr(np, val)	aal_set_le64(np, ptr, val)

#endif