home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / code / andylib / h / options < prev    next >
Encoding:
Text File  |  1995-05-15  |  954 b   |  28 lines

  1. /* options.h */
  2.  
  3. #ifndef __options_h
  4. #define __options_h
  5.  
  6. #include "os.h"
  7.  
  8. typedef os_error *(*options_changedhandler)(void *handle);
  9.  
  10. os_error *options_reload(void);
  11. os_error *options_init(void);
  12. os_error *options_readstr(char *tag, char *buf, int size);
  13. os_error *options_readint(char *tag, int *num);
  14. os_error *options_readbool(char *tag, BOOL *flag);
  15. os_error *options_readstrx(char *tag, char *buf, int size, char *def);
  16. os_error *options_readintx(char *tag, int *num, int def);
  17. os_error *options_readboolx(char *tag, BOOL *flag, BOOL def);
  18. os_error *options_writestr(char *tag, char *buf);
  19. os_error *options_writeif(char *tag, char *buf);
  20. os_error *options_writeint(char *tag, int num);
  21. os_error *options_writebool(char *tag, BOOL flag);
  22. os_error *options_written(void);
  23. os_error *options_register(options_changedhandler ch, void *handle);
  24. os_error *options_unregister(options_changedhandler ch, void *handle);
  25. os_error *options_set(void);
  26.  
  27. #endif
  28.