home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / POSTSCPT / GSVIEW / SRC / GVCPRF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-23  |  1.5 KB  |  50 lines

  1. /* Copyright (C) 1995, Russell Lang.  All rights reserved.
  2.   
  3.   This file is part of GSview.
  4.   
  5.   This program is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the GSview Free Public Licence 
  9.   (the "Licence") for full details.
  10.   
  11.   Every copy of GSview must include a copy of the Licence, normally in a 
  12.   plain ASCII text file named LICENCE.  The Licence grants you the right 
  13.   to copy, modify and redistribute GSview, but only under certain conditions 
  14.   described in the Licence.  Among other things, the Licence requires that 
  15.   the copyright notice and this notice be preserved on all copies.
  16. */
  17.  
  18. /* gvcprf.h */
  19. /* Profile (INI) includes */
  20.  
  21. struct prfentry {
  22.     char *name;
  23.     char *value;
  24.     struct prfentry *next;
  25. };
  26.  
  27. struct prfsection {
  28.     char *name;
  29.     struct prfentry *entry;
  30.     struct prfsection *next;
  31. };
  32.  
  33. struct prop_item_s {
  34.     char    name[MAXSTR];
  35.     char    value[MAXSTR];
  36. };
  37.  
  38. typedef struct tagPROFILE {
  39.     char *name;
  40.     FILE *file;
  41.     BOOL changed;
  42.     struct prfsection *section;
  43. } PROFILE;
  44.  
  45.  
  46. PROFILE * profile_open(char *filename);
  47. int profile_read_string(PROFILE *prf, char *section, char GVFAR *entry, char *def, char *buffer, int len);
  48. BOOL profile_write_string(PROFILE *prf, char *section, char *entry, char *value);
  49. BOOL profile_close(PROFILE *prf);
  50.