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