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