File: block.h

package info (click to toggle)
libaal 1.0.7-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,768 kB
  • sloc: sh: 4,118; ansic: 2,461; makefile: 52
file content (36 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (7)
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
/* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by
   libaal/COPYING.
   
   block.h -- block working functions declaration. */

#ifndef AAL_BLOCK_H
#define AAL_BLOCK_H

#include <aal/types.h>

#ifndef ENABLE_MINIMAL
extern void aal_block_move(aal_block_t *block,
			   aal_device_t *device,
			   blk_t nr);

extern errno_t aal_block_write(aal_block_t *block);
#endif

extern void aal_block_free(aal_block_t *block);
extern void aal_block_fini(aal_block_t *block);
extern errno_t aal_block_read(aal_block_t *block);

extern errno_t aal_block_fill(aal_block_t * block,
			      unsigned char c);

extern errno_t aal_block_init(aal_block_t *block,
			      aal_device_t *device, 
			      uint32_t size, blk_t nr);

extern aal_block_t *aal_block_alloc(aal_device_t *device, 
				    uint32_t size, blk_t nr);

extern aal_block_t *aal_block_load(aal_device_t *device, 
				   uint32_t size, blk_t nr);
#endif