home *** CD-ROM | disk | FTP | other *** search
- /* options.h */
-
- #ifndef __options_h
- #define __options_h
-
- #include "os.h"
-
- typedef os_error *(*options_changedhandler)(void *handle);
-
- os_error *options_reload(void);
- os_error *options_init(void);
- os_error *options_readstr(char *tag, char *buf, int size);
- os_error *options_readint(char *tag, int *num);
- os_error *options_readbool(char *tag, BOOL *flag);
- os_error *options_readstrx(char *tag, char *buf, int size, char *def);
- os_error *options_readintx(char *tag, int *num, int def);
- os_error *options_readboolx(char *tag, BOOL *flag, BOOL def);
- os_error *options_writestr(char *tag, char *buf);
- os_error *options_writeif(char *tag, char *buf);
- os_error *options_writeint(char *tag, int num);
- os_error *options_writebool(char *tag, BOOL flag);
- os_error *options_written(void);
- os_error *options_register(options_changedhandler ch, void *handle);
- os_error *options_unregister(options_changedhandler ch, void *handle);
- os_error *options_set(void);
-
- #endif
-