home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 December / PCO_1298.ISO / filesbbs / os2 / fn128os2.arj / FN128OS2.ZIP / fn128os2 / src / index.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-02  |  2.0 KB  |  62 lines

  1. /*
  2.  # $Id: index.h,v 1.9 1998/04/10 10:27:18 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 INDEX_H
  34. #define INDEX_H
  35.  
  36. #define    IDX_SZ        0
  37. #define    IDX_MD5SPAN    1
  38. #define    IDX_MD5        2
  39. #define    IDX_PROD    3
  40. #define    IDX_VERN    4
  41. #define    IDX_GRADE    5
  42. #define    IDX_MAX_GRADE    6
  43. #define    IDX_MORPHS    7
  44. #define    IDX_ARCH    8
  45. #define    IDX_COMMENTS    9
  46. #define    IDX_NFLDS    10
  47.  
  48. typedef struct {
  49.     char        *raw;
  50.     char        *flds[IDX_NFLDS];
  51.     int        size;
  52.     int        grade;
  53.     int        max_grade;
  54. } index_entry_t;
  55.  
  56. int        have_morphs(index_entry_t *ent);
  57. int        build_index(char *indexfile, char **vern);
  58. index_entry_t    *index_lookup(char *tgt, int *err);
  59. int        is_lx_entry(index_entry_t *ip);
  60.  
  61. #endif
  62.