~ubuntu-branches/ubuntu/karmic/psicode/karmic

« back to all changes in this revision

Viewing changes to src/lib/libpsio/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2009-02-23 00:12:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090223001202-rutldoy3dimfpesc
Tags: 3.4.0-1
* New upstream release.

[ Michael Banck ]
* debian/patches/01_DESTDIR.dpatch: Refreshed.
* debian/patches/02_FHS.dpatch: Removed, applied upstream.
* debian/patches/03_debian_docdir: Likewise.
* debian/patches/04_man.dpatch: Likewise.
* debian/patches/06_466828_fix_gcc_43_ftbfs.dpatch: Likewise.
* debian/patches/07_464867_move_executables: Fixed and refreshed.
* debian/patches/00list: Adjusted.
* debian/control: Improved description.
* debian/patches-held: Removed.
* debian/rules (install/psi3): Do not ship the ruby bindings for now.

[ Daniel Leidert ]
* debian/rules: Fix txtdir via DEB_MAKE_INSTALL_TARGET.
* debian/patches/01_DESTDIR.dpatch: Refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _psi_src_lib_libpsio_config_h_
 
2
#define _psi_src_lib_libpsio_config_h_
 
3
 
 
4
#define PSIO_OPEN_NEW 0
 
5
#define PSIO_OPEN_OLD 1
 
6
 
 
7
#define PSIO_KEYLEN 80
 
8
#define PSIO_MAXVOL 8
 
9
#define PSIO_MAXUNIT 300
 
10
#define PSIO_PAGELEN 65536
 
11
 
 
12
#define PSIO_ERROR_INIT       1
 
13
#define PSIO_ERROR_DONE       2
 
14
#define PSIO_ERROR_MAXVOL     3
 
15
#define PSIO_ERROR_NOVOLPATH  4
 
16
#define PSIO_ERROR_OPEN       5
 
17
#define PSIO_ERROR_REOPEN     6
 
18
#define PSIO_ERROR_CLOSE      7
 
19
#define PSIO_ERROR_RECLOSE    8
 
20
#define PSIO_ERROR_OSTAT      9
 
21
#define PSIO_ERROR_LSEEK     10
 
22
#define PSIO_ERROR_READ      11
 
23
#define PSIO_ERROR_WRITE     12
 
24
#define PSIO_ERROR_NOTOCENT  13
 
25
#define PSIO_ERROR_TOCENTSZ  14
 
26
#define PSIO_ERROR_KEYLEN    15
 
27
#define PSIO_ERROR_BLKSIZ    16
 
28
#define PSIO_ERROR_BLKSTART  17
 
29
#define PSIO_ERROR_BLKEND    18
 
30
#define PSIO_ERROR_IDENTVOLPATH 19
 
31
#define PSIO_ERROR_MAXUNIT   20
 
32
 
 
33
typedef unsigned long int ULI; /* For convenience */
 
34
 
 
35
typedef struct {
 
36
    ULI page; /* First page of entry */
 
37
    ULI offset; /* Starting byte offset on fpage */
 
38
} psio_address;
 
39
 
 
40
typedef struct {
 
41
    char *path;
 
42
    int stream;
 
43
} psio_vol;
 
44
 
 
45
typedef struct psio_entry {
 
46
    char key[PSIO_KEYLEN];
 
47
    psio_address sadd;
 
48
    psio_address eadd;
 
49
    struct psio_entry *next;
 
50
    struct psio_entry *last;
 
51
} psio_tocentry;
 
52
 
 
53
typedef struct {
 
54
    ULI numvols;
 
55
    psio_vol vol[PSIO_MAXVOL];
 
56
    ULI toclen;
 
57
    psio_tocentry *toc;
 
58
} psio_ud;
 
59
 
 
60
/** A convenient address initialization struct */
 
61
extern psio_address PSIO_ZERO;
 
62
 
 
63
#endif /* header guard */