chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Sapphire / sh / choices / prefs
1 ;
2 ; choices.prefs.sh
3 ;
4 ; Management of application's preferences file
5 ;
6 ; © 1995-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's Sapphire library.
12 ;
13 ; Sapphire is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
16 ; any later version.
17 ;
18 ; Sapphire is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 ; GNU General Public License for more details.
22 ;
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sapphire.  If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Overview -------------------------------------------------------------
28 ;
29 ; Functions provided:
30 ;
31 ;  prefs_find
32 ;  prefs_init
33
34                 [       :LNOT::DEF:prefs__dfn
35                 GBLL    prefs__dfn
36
37 ; --- prefs_find ---
38 ;
39 ; On entry:     --
40 ;
41 ; On exit:      R0 == chunk handle of loaded preferences file
42 ;
43 ; Use:          Returns the chunk handle of the preferences file.  You can
44 ;               then claim your chunk of options from the preferences file
45 ;               using options_read.
46
47                 IMPORT  prefs_find
48
49 ; --- prefs_init ---
50 ;
51 ; On entry:     R0 == pointer to application name
52 ;
53 ; On exit:      --
54 ;
55 ; Use:          Loads the application's preferences file.
56
57                 IMPORT  prefs_init
58
59                 ]
60
61 ;----- That's all, folks ----------------------------------------------------
62
63                 END