Debian Codegraph @

gui/GraphLib/libsrc/uimxR5/include/uxdd.h

raw
1 /* @(#)uxdd.h 17.1 (ESO-IPG) 01/25/02 17:26:06 */
2 /*---------------------------------------------------------------------
3 * $Date: 2003-06-04 14:49:18 $ $Revision: 1.1.1.1 $
4 *---------------------------------------------------------------------
5 *
6 *
7 * Copyright (c) 1992, Visual Edge Software Ltd.
8 *
9 * ALL RIGHTS RESERVED. Permission to use, copy, modify, and
10 * distribute this software and its documentation for any purpose
11 * and without fee is hereby granted, provided that the above
12 * copyright notice appear in all copies and that both that
13 * copyright notice and this permission notice appear in supporting
14 * documentation, and that the name of Visual Edge Software not be
15 * used in advertising or publicity pertaining to distribution of
16 * the software without specific, written prior permission. The year
17 * included in the notice is the year of the creation of the work.
18 *-------------------------------------------------------------------*/
19
20 #ifndef _UXDD_INCLUDED
21 #define _UXDD_INCLUDED
22
23 #include "uxproto.h"
24
25 #define MAXRESLEN 32
26
27 struct cl_entry {
28 int utype;
29 int xtype;
30 struct cl_entry *next_cl;
31 char *xtclass;
32 };
33
34 struct dd_entry {
35 int utype;
36 int xtype;
37 struct cl_entry *next_cl;
38 char name[MAXRESLEN];
39 struct dd_entry *next;
40 };
41
42 typedef struct dd_entry DD;
43 typedef struct dd_entry *DDList;
44 typedef struct cl_entry CL_ENTRY;
45
46 #define dd_lookup(l) type_lookup(l,DD)
47 #define cl_lookup(l) type_lookup(l,CL_ENTRY)
48
49 #define dd_name(p) (p->name)
50 #define dd_put_name(p,n) (dd_name(p) = n)
51 #define dd_utype(p) ((p)->utype)
52 #define dd_put_utype(p,v) (dd_utype(p) = v)
53 #define dd_xtype(p) ((p)->xtype)
54 #define dd_put_xtype(p,v) (dd_xtype(p) = v)
55
56 CL_ENTRY *UxDDEntry UXPROTO((char *name, void *xtclass));
57 void UxDDInit UXPROTO((void));
58 void UxDDInstall UXPROTO((char *name, int utype, int xtype));
59 void UxDDAddEntry UXPROTO((char *name, void *xtclass, int utype, int xtype));
60
61
62 #endif /* _UXDD_INCLUDED */