]> git.saurik.com Git - apple/bootx.git/blob - bootx.tproj/include.subproj/sl_words.h
BootX-55.1.tar.gz
[apple/bootx.git] / bootx.tproj / include.subproj / sl_words.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * sl_words.h - Headers for the Secondary Loader Words.
27 *
28 * Copyright (c) 1998-2000 Apple Computer, Inc.
29 *
30 * DRI: Josh de Cesare
31 */
32
33 #ifndef _BOOTX_SL_WORDS_H_
34 #define _BOOTX_SL_WORDS_H_
35
36 #include <ci.h>
37
38 // The iHandle for the SL Words.
39 extern CICell SLWordsIH;
40
41 // Call InitSLWords before using SLWordsIH.
42 // outputLevel is used to supress output.
43 // 0 - all off
44 // 1 - OF stdout only
45 // 2 - SLW's emit and cr.
46 // 3 - ???
47 extern long InitSLWords(void);
48
49
50 // Suported words.
51
52 // slw_set_output_level ( level -- )
53 // set the current output level.
54 extern void SetOutputLevel(long level);
55
56 // slw_emit ( ch -- ) Output Level: 2
57 // calls emit ( ch -- )
58 extern void Emit(char ch);
59
60 // slw_cr ( -- ) Output Level: 2
61 // calls cr ( -- )
62 extern void CR(void);
63
64 // slw_init_keymap ( keyboardIH -- keyMap )
65 // sets the ihandle for the keyboard and
66 // puts the address of the keyMap on the stack
67 extern char *InitKeyMap(CICell keyboardIH);
68
69 // slw_update_keymap ( -- )
70 // Called by slw_spin to make sure all the keys are caught.
71 extern void UpdateKeyMap(void);
72
73 // slw_spin_init ( screenIH cursorAddr cursorX cursorY cursorW cursorH --)
74 // Sets up the wait cursor.
75 extern void SpinInit(CICell screenIH, char *cursorAddr,
76 long cursorX, long cursorY,
77 long cursorW, long cursorH,
78 long frames, long fps,
79 long pixelSize, long spare);
80
81 // slw_spin ( -- )
82 // Spins the wait cursor.
83 extern void Spin(void);
84
85 extern long GetPackageProperty(CICell phandle, char *propName,
86 char **propAddr, long *propLen);
87
88 // slw_pwd ( phandle addr len -- act )
89 // does pwd the hard way.
90
91 #define SL_DEBUG (0)
92
93 /*
94 .sc ( -- )
95 does a simple stack crawl.
96
97
98
99 */
100
101 #endif /* ! _BOOTX_SL_WORDS_H_ */