xref: /titanic_50/usr/src/lib/libeti/menu/common/llib-lmenu (revision 880d797826457b77414b37d531cc3e1aa166ecbe)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*	Copyright (c) 1988 AT&T	*/
23/*	  All Rights Reserved  	*/
24
25
26/*
27 * Copyright (c) 1997, by Sun Microsystems, Inc.
28 * All rights reserved.
29 */
30
31#pragma ident	"%Z%%M%	%I%	%E% SMI"
32
33/*LINTLIBRARY*/
34#include "menu.h"
35
36WINDOW *win;
37MENU *menu;
38ITEM **items;
39ITEM *item;
40
41ITEM	**menu_items(MENU *m) {return items;}
42ITEM	*current_item(MENU *m) {return (ITEM *)0;}
43ITEM	*new_item(char *n, char *d) {return item;}
44MENU	*new_menu(ITEM **i)  {return menu;}
45OPTIONS	item_opts(ITEM *i) {return O_SELECTABLE;}
46OPTIONS	menu_opts(MENU *m) {return O_ONEVALUE;}
47PTF_void	item_init(MENU *m) {return (PTF_void)0;}
48PTF_void	item_term(MENU *m) {return (PTF_void)0;}
49PTF_void	menu_init(MENU *m) {return (PTF_void)0;}
50PTF_void	menu_term(MENU *m) {return (PTF_void)0;}
51WINDOW	*menu_sub(MENU *m) {return win;}
52WINDOW	*menu_win(MENU *m) {return win;}
53
54char	*item_description(ITEM *i) {return "description";}
55char	*item_name(ITEM *i) {return "name";}
56char	*item_userptr(ITEM *i) {return "item_userptr";}
57char	*menu_mark(MENU *m) {return "-";}
58char	*menu_pattern(MENU *m) {return "pattern";}
59char	*menu_userptr(MENU *m) {return "menu_userptr";}
60
61chtype	menu_back(MENU *m) {return A_NORMAL;}
62chtype	menu_fore(MENU *m) {return A_NORMAL;}
63chtype	menu_grey(MENU *m) {return A_NORMAL;}
64
65void	menu_format(MENU *m, int *r, int *c) {}
66
67int	free_item(ITEM *i) {return E_OK;}
68int	free_menu(MENU *m) {return E_OK;}
69int	item_count(MENU *m) {return 0;}
70int	item_index(ITEM *i) {return 0;}
71int	item_opts_off(ITEM *i, OPTIONS o) {return 0;}
72int	item_opts_on(ITEM *i, OPTIONS o) {return 0;}
73int	item_value(ITEM *i) {return 0;}
74int	item_visible(ITEM *i) {return TRUE;}
75int	menu_driver(MENU *m, int c) {return E_OK;}
76int	menu_opts_off(MENU *m, OPTIONS o) {return 0;}
77int	menu_opts_on(MENU *m, OPTIONS o) {return 0;}
78int	menu_pad(MENU *m) {return ' ';}
79int	pos_menu_cursor(MENU *m) {return E_OK;}
80int	post_menu(MENU *m) {return E_OK;}
81int	scale_menu(MENU *m, int *r, int *c) {return E_OK;}
82int	set_current_item(MENU *m, ITEM *i) {return E_OK;}
83int	set_item_init(MENU *m, PTF_void f) {return E_OK;}
84int	set_item_opts(ITEM *i, OPTIONS o) {return E_OK;}
85int	set_item_term(MENU *m, PTF_void f) {return E_OK;}
86int	set_item_userptr(ITEM *i, char *u) {return E_OK;}
87int	set_item_value(ITEM *i, int v) {return E_OK;}
88int	set_menu_back(MENU *m, chtype a) {return E_OK;}
89int	set_menu_fore(MENU *m, chtype a) {return E_OK;}
90int	set_menu_format(MENU *m, int r, int c) {return E_OK;}
91int	set_menu_grey(MENU *m, chtype a) {return E_OK;}
92int	set_menu_init(MENU *m, PTF_void f) {return E_OK;}
93int	set_menu_items(MENU *m, ITEM **i) {return E_OK;}
94int	set_menu_mark(MENU *m, char *s) {return E_OK;}
95int	set_menu_opts(MENU *m, OPTIONS o) {return E_OK;}
96int	set_menu_pad(MENU *m, int i) {return E_OK;}
97int	set_menu_pattern(MENU *m, char *p) {return E_OK;}
98int	set_menu_sub(MENU *m, WINDOW *w) {return E_OK;}
99int	set_menu_term(MENU *m, PTF_void f) {return E_OK;}
100int	set_menu_userptr(MENU *m, char *u) {return E_OK;}
101int	set_menu_win(MENU *m, WINDOW *w) {return E_OK;}
102int	set_top_row(MENU *m, int i) {return E_OK;}
103int	top_row(MENU *m) {return 0;}
104int	unpost_menu(MENU *m) {return E_OK;}
105