|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved.
26: *
27: * km.h - kernel keyboard/monitor module, public procedural interface.
28: *
29: * HISTORY
30: * 20-Jan-92 Doug Mitchell at NeXT
31: * Created.
32: */
33:
34: #ifdef DRIVER_PRIVATE
35:
36: #import <bsd/dev/ppc/ConsoleSupport.h>
37:
38: /*
39: * Write message to console; create an alert panel if no text-type window
40: * currently exists. Caller must call alert_done() when finished.
41: * The height and width arguments are not used; they are provided for
42: * compatibility with the 68k version of alert().
43: */
44: int alert(int width,
45: int height,
46: const char *title,
47: const char *msg,
48: int p1,
49: int p2,
50: int p3,
51: int p4,
52: int p5,
53: int p6,
54: int p7,
55: int p8);
56: int alert_done(void);
57:
58: void DoAlert(const char *title, const char *msg);
59: int DoRestore(void);
60:
61: /*
62: * printf() a message to an an alert panel. Can be used any time after calling
63: * alert().
64: */
65: void aprint(const char *msg,
66: int p1,
67: int p2,
68: int p3,
69: int p4,
70: int p5,
71: int p6,
72: int p7,
73: int p8);
74:
75: /*
76: * Dump message log.
77: */
78: int kmdumplog(void);
79:
80: /*
81: * Initialize the console enough for printf's to work. No text window will
82: * be created if booting in icon mode. Keyboard is not enabled.
83: */
84: void initialize_screen(void * args);
85:
86: void kmEnableAnimation(void);
87: void kmDisableAnimation(void);
88: void kmDrawGraphicPanel(GraphicPanelType panelType);
89: void kmGraphicPanelString(char *string);
90: const char *kmLocalizeString(const char *string);
91:
92: int kmtrygetc(void);
93:
94: #endif /* DRIVER_PRIVATE */
95:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.