home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 November / PCO_1198.ISO / filesbbs / os2 / fn127os2.arj / FN127OS2.ZIP / fn127os2 / src / os2page.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-25  |  2.3 KB  |  64 lines

  1. /*
  2.  # $Id: os2page.h,v 1.2 1998/04/10 10:26:06 fbm Exp fbm $
  3.  # Copyright (C) 1997,1998 Farrell McKay
  4.  # All rights reserved.
  5.  #
  6.  # This file is part of the Fortify distribution, a toolkit for
  7.  # upgrading the cryptographic strength of the Netscape Navigator
  8.  # web browser, authored by Farrell McKay.
  9.  #
  10.  # This toolkit is provided to the recipient under the
  11.  # following terms and conditions:-
  12.  #   1.  This copyright notice must not be removed or modified.
  13.  #   2.  This toolkit may not be reproduced or included in any commercial
  14.  #       media distribution, or commercial publication (for example CD-ROM,
  15.  #       disk, book, magazine, journal) without first obtaining the author's
  16.  #       express permission.
  17.  #   3.  This toolkit, or any component of this toolkit, may not be
  18.  #       commercially resold, redeveloped, rewritten, enhanced or otherwise
  19.  #       used as the basis for commercial venture, without first obtaining
  20.  #       the author's express permission.
  21.  #   4.  Subject to the above conditions being observed (1-3), this toolkit
  22.  #       may be freely reproduced or redistributed.
  23.  #   5.  This software is provided "as-is", without express or implied
  24.  #       warranty.  In no event shall the author be liable for any direct,
  25.  #       indirect or consequential damages however caused.
  26.  #   6.  Subject to the above conditions being observed (1-5),
  27.  #       this toolkit may be used at no cost to the recipient.
  28.  #
  29.  # Farrell McKay
  30.  # Wayfarer Systems Pty Ltd        contact@fortify.net
  31.  */
  32.  
  33. #ifndef OS2PAGE_H
  34. #define OS2PAGE_H
  35.  
  36. #define PAGE_PHYS    0
  37. #define PAGE_ITER    1
  38. #define PAGE_INVALID    2
  39. #define PAGE_ZERO    3
  40. #define PAGE_RANGE    4
  41. #define PAGE_COMPR    5
  42.  
  43. typedef struct lxPage {
  44.     unsigned long        rawOffset;
  45.     unsigned short        rawSz;
  46.     unsigned short        rawFlags;
  47.     unsigned short        size;
  48.     unsigned short        flags;
  49.     unsigned long        fileOffset;
  50.     unsigned long        addr;
  51.     unsigned long        fixupOffset;
  52.     unsigned char        *data;
  53. } lxPage_t;
  54.  
  55. int        lxPages_uncompressed(lxfile_t *lx, int pageNum);
  56. unsigned char    *lxPages_get_data(lxfile_t *lx, int i, int fd);
  57. unsigned long    lxPages_get_file_offset(lxfile_t *lx, unsigned long addr);
  58. void        lxPages_set_addr(lxfile_t *lx, int i, unsigned long addr);
  59. void        lxPages_set_fixup(lxfile_t *lx, int i, unsigned long offset);
  60. void        lxPages_print(lxfile_t *lx);
  61. int        lxPages_build(int fd, lxfile_t *_lx);
  62.  
  63. #endif
  64.