home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 September / PCO_0998.ISO / filesbbs / dos / sbbs_src.exe / SBBS / SMBFUNCS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-13  |  3.3 KB  |  77 lines

  1. /* SMBFUNCS.C */
  2.  
  3. /* Developed 1990-1997 by Rob Swindell; PO Box 501, Yorba Linda, CA 92885 */
  4.  
  5. #include "smbdefs.h"
  6.  
  7. int     SMBCALL (smb_ver)(void);
  8. char *    SMBCALL (smb_lib_ver)(void);
  9. int     SMBCALL (smb_open)(smb_t *smb);
  10. void    SMBCALL (smb_close)(smb_t *smb);
  11. int     SMBCALL (smb_open_da)(smb_t *smb);
  12. void    SMBCALL (smb_close_da)(smb_t *smb);
  13. int     SMBCALL (smb_open_ha)(smb_t *smb);
  14. void    SMBCALL (smb_close_ha)(smb_t *smb);
  15. int     SMBCALL (smb_create)(smb_t *smb);
  16. int     SMBCALL (smb_stack)(smb_t *smb, int op);
  17. int     SMBCALL (smb_trunchdr)(smb_t *smb);
  18. int     SMBCALL (smb_locksmbhdr)(smb_t *smb);
  19. int     SMBCALL (smb_getstatus)(smb_t *smb);
  20. int     SMBCALL (smb_putstatus)(smb_t *smb);
  21. int     SMBCALL (smb_unlocksmbhdr)(smb_t *smb);
  22. int     SMBCALL (smb_getmsgidx)(smb_t *smb, smbmsg_t *msg);
  23. int     SMBCALL (smb_getlastidx)(smb_t *smb, idxrec_t *idx);
  24. uint    SMBCALL (smb_getmsghdrlen)(smbmsg_t *msg);
  25. ulong    SMBCALL (smb_getmsgdatlen)(smbmsg_t *msg);
  26. int     SMBCALL (smb_lockmsghdr)(smb_t *smb, smbmsg_t *msg);
  27. int     SMBCALL (smb_getmsghdr)(smb_t *smb, smbmsg_t *msg);
  28. int     SMBCALL (smb_unlockmsghdr)(smb_t *smb, smbmsg_t *msg);
  29. int     SMBCALL (smb_addcrc)(smb_t *smb, ulong crc);
  30. int     SMBCALL (smb_hfield)(smbmsg_t *msg, ushort type, ushort length
  31.                 ,void *data);
  32. int     SMBCALL (smb_dfield)(smbmsg_t *msg, ushort type, ulong length);
  33. int     SMBCALL (smb_addmsghdr)(smb_t *smb, smbmsg_t *msg,int storage);
  34. int     SMBCALL (smb_putmsg)(smb_t *smb, smbmsg_t *msg);
  35. int     SMBCALL (smb_putmsgidx)(smb_t *smb, smbmsg_t *msg);
  36. int     SMBCALL (smb_putmsghdr)(smb_t *smb, smbmsg_t *msg);
  37. void    SMBCALL (smb_freemsgmem)(smbmsg_t *msg);
  38. ulong    SMBCALL (smb_hdrblocks)(ulong length);
  39. ulong    SMBCALL (smb_datblocks)(ulong length);
  40. long    SMBCALL (smb_allochdr)(smb_t *smb, ulong length);
  41. long    SMBCALL (smb_fallochdr)(smb_t *smb, ulong length);
  42. long    SMBCALL (smb_hallochdr)(smb_t *smb);
  43. long    SMBCALL (smb_allocdat)(smb_t *smb, ulong length, ushort headers);
  44. long    SMBCALL (smb_fallocdat)(smb_t *smb, ulong length, ushort headers);
  45. long    SMBCALL (smb_hallocdat)(smb_t *smb);
  46. int     SMBCALL (smb_incdat)(smb_t *smb, ulong offset, ulong length
  47.                 ,ushort headers);
  48. int     SMBCALL (smb_freemsg)(smb_t *smb, smbmsg_t *msg);
  49. int     SMBCALL (smb_freemsgdat)(smb_t *smb, ulong offset, ulong length
  50.                 ,ushort headers);
  51. int     SMBCALL (smb_freemsghdr)(smb_t *smb, ulong offset, ulong length);
  52. char HUGE16 * SMBCALL smb_getmsgtxt(smb_t *smb, smbmsg_t *msg, ulong mode);
  53. void    SMBCALL (smb_freemsgtxt)(char HUGE16 *buf);
  54.  
  55. /* FILE pointer I/O functions */
  56.  
  57. int     SMBCALL (smb_feof(FILE *fp);
  58. int     SMBCALL (smb_ferror(FILE *fp);
  59. int     SMBCALL (smb_fflush(FILE *fp);
  60. int     SMBCALL (smb_fgetc(FILE *fp);
  61. int     SMBCALL (smb_fputc(int ch, FILE *fp);
  62. int     SMBCALL (smb_fseek(FILE *fp, long offset, int whence);
  63. long    SMBCALL (smb_ftell(FILE *fp);
  64. long    SMBCALL (smb_fread(char HUGE16 *buf, long bytes, FILE *fp);
  65. long    SMBCALL (smb_fwrite(char HUGE16 *buf, long bytes, FILE *fp);
  66. long    SMBCALL (smb_fgetlength(FILE *fp);
  67. int     SMBCALL (smb_fsetlength(FILE *fp, long length);
  68. void    SMBCALL (smb_rewind(FILE *fp);
  69. void    SMBCALL (smb_clearerr(FILE *fp);
  70.  
  71. /* LZH functions */
  72.  
  73. long    SMBCALL (lzh_encode(uchar *inbuf, long inlen, uchar *outbuf);
  74. long    SMBCALL (lzh_decode(uchar *inbuf, long inlen, uchar *outbuf);
  75.  
  76. #endif /* Don't add anything after this #endif statement */
  77.