home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / dbm / include / nsres.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.0 KB  |  43 lines

  1. #ifndef NSRES_H
  2. #define NSRES_H
  3. #include "cdefs.h"
  4. #include "mcom_db.h"
  5.  
  6. __BEGIN_DECLS
  7.  
  8. /* C version */
  9. #define NSRESHANDLE void *
  10.  
  11. typedef void (*NSRESTHREADFUNC)(void *);
  12.  
  13. typedef struct NSRESTHREADINFO
  14. {
  15.     void *lock;
  16.     NSRESTHREADFUNC fn_lock;
  17.     NSRESTHREADFUNC fn_unlock;
  18. } NSRESTHREADINFO;
  19.  
  20. #define MAXBUFNUM 10
  21. #define MAXSTRINGLEN 300
  22.  
  23. #define NSRES_CREATE 1
  24. #define NSRES_OPEN 2
  25.  
  26.  
  27.  
  28. NSRESHANDLE NSResCreateTable(const char *filename, NSRESTHREADINFO *threadinfo);
  29. NSRESHANDLE NSResOpenTable(const char *filename, NSRESTHREADINFO *threadinfo);
  30. void NSResCloseTable(NSRESHANDLE handle);
  31.  
  32. char *NSResLoadString(NSRESHANDLE handle, const char * library, int32 id, 
  33.     unsigned int charsetid, char *retbuf);
  34. int32 NSResGetSize(NSRESHANDLE handle, const char *library, int32 id);
  35. int32 NSResLoadResource(NSRESHANDLE handle, const char *library, int32 id, char *retbuf);
  36. int NSResAddString(NSRESHANDLE handle, const char *library, int32 id, const char *string, unsigned int charset);
  37.  
  38. __END_DECLS
  39.  
  40.  
  41. #endif
  42.  
  43.