File: om_data.c

package info (click to toggle)
xview 3.2p1.4-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 20,068 kB
  • ctags: 24,304
  • sloc: ansic: 241,105; yacc: 1,392; sh: 1,140; makefile: 273; lex: 76; perl: 54; asm: 50; cpp: 15
file content (71 lines) | stat: -rw-r--r-- 2,144 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef lint
#ifdef sccs
static char     sccsid[] = "@(#)om_data.c 20.28 93/06/28";
#endif
#endif

/*
 *	(c) Copyright 1989 Sun Microsystems, Inc. Sun design patents 
 *	pending in the U.S. and foreign countries. See LEGAL NOTICE 
 *	file for terms of the license.
 */

#include <xview/openmenu.h>

Pkg_private int		menu_create_internal();
Pkg_private int		menu_create_item_internal();
Pkg_private int		menu_destroy_internal();
Pkg_private Xv_opaque	menu_gets();
Pkg_private int		menu_item_destroy_internal();
Pkg_private Xv_opaque	menu_item_gets();
Pkg_private Xv_opaque	menu_item_sets();
Pkg_private Xv_opaque	menu_pkg_find();
Pkg_private Xv_opaque	menu_sets();

Xv_pkg          xv_command_menu_pkg = {
    "Command Menu",		/* seal -> package name */
    (Attr_pkg) ATTR_PKG_MENU,	/* menu attr */
    sizeof(Xv_menu),		/* size of the menu public data structure */
    &xv_generic_pkg,		/* pointer to parent */
    menu_create_internal,	/* init routine */
    menu_sets,
    menu_gets,
    menu_destroy_internal,
    NULL			/* no find proc */
};

Xv_pkg          xv_choice_menu_pkg = {
    "Choice Menu",		/* seal -> package name */
    (Attr_pkg) ATTR_PKG_MENU,	/* menu attr */
    sizeof(Xv_menu),		/* size of the menu public data structure */
    &xv_generic_pkg,		/* pointer to parent */
    menu_create_internal,	/* init routine */
    menu_sets,
    menu_gets,
    menu_destroy_internal,
    NULL			/* no find proc */
};

Xv_pkg          xv_toggle_menu_pkg = {
    "Toggle Menu",		/* seal -> package name */
    (Attr_pkg) ATTR_PKG_MENU,	/* menu attr */
    sizeof(Xv_menu),		/* size of the menu public data structure */
    &xv_generic_pkg,		/* pointer to parent */
    menu_create_internal,	/* init routine */
    menu_sets,
    menu_gets,
    menu_destroy_internal,
    NULL			/* no find proc */
};

Xv_pkg          xv_menu_item_pkg = {
    "Menu_item",
    (Attr_pkg) ATTR_PKG_MENU,	/* menu item shares menu attrs */
    sizeof(Xv_menu_item),	/* size of the item public data structure */
    &xv_generic_pkg,
    menu_create_item_internal,
    menu_item_sets,
    menu_item_gets,
    menu_item_destroy_internal,
    menu_pkg_find
};