home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / OLS / Os2 / LHA2P205 / LHA2P205.LZH / lha2-2.05pre / source.lzh / src / intrface.h < prev    next >
C/C++ Source or Header  |  1995-10-15  |  1KB  |  66 lines

  1. /*
  2.  * intrface.h
  3.  *   Copyright (C) 1988-1992, Haruyasu YOSHIZAKI
  4.  *   Copyright (C) 1991-1995, Satoshi HIRAMATSU (OS/2 HPFS version)
  5.  *
  6.  * $Log$
  7.  */
  8.  
  9.  
  10. #ifndef __INCLUDED_INTRFACE_H
  11. #define __INCLUDED_INTRFACE_H
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16.  
  17. typedef short node;
  18.  
  19.  
  20. struct interfacing
  21. {
  22.   FILE *infile;
  23.   FILE *outfile;
  24.   ulong original;
  25.   ulong packed;
  26.   short dicbit;
  27.   short method;
  28.   short blkcnt;
  29.   char *internal;
  30. };
  31.  
  32.  
  33. extern struct interfacing interface;
  34.  
  35.  
  36. /* from error.c */
  37. void error(char *, const char *);
  38. void fileerror(char *, FILE *);
  39.  
  40.  
  41. /* from slide.c */ 
  42. extern node *next;
  43. extern uchar *use_ptr;
  44. extern uchar text[];
  45.  
  46. #define TEXT_SIZE 0x7000
  47.  
  48. int encode_alloc(int);
  49. hword encode(struct interfacing *);
  50. hword decode(struct interfacing *);
  51.  
  52.  
  53. /* from crcio.c */
  54. extern ushort crc;
  55.  
  56. void make_crctable(void);
  57. /* ushort calccrc(uchar *, ulong);*/
  58. ushort calccrc(uchar *, ulong, hword);
  59. off_t crcfread(FILE *, off_t, hword *);
  60.  
  61.  
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif /* __INCLUDED_INTRFACE_H */
  66.