Merge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code
[oweals/cde.git] / cde / programs / dtcalc / ds_xlib.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: ds_xlib.h /main/3 1995/11/01 12:40:54 rswiston $ */
24 /*                                                                      *
25  *  ds_xlib.h                                                           *
26  *   Contains the NO_PROTO defines for functions is ds_xlib.h.          *
27  *                                                                      *
28  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
29  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
30  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
31  * (c) Copyright 1993, 1994 Novell, Inc.                                *
32  */
33
34 #ifndef _ds_xlib_h
35 #define _ds_xlib_h
36
37 #include <X11/Xlib.h>
38 #include <X11/Xresource.h>
39 #include <X11/Intrinsic.h>
40 #include <Xm/Xm.h>
41
42 /* For all function declarations, if ANSI then use a prototype. */
43
44 #if  defined(__STDC__)
45 #define P(args)  args
46 #else  /* ! __STDC__ */
47 #define P(args)  ()
48 #endif  /* STDC */
49
50 /* Function declarations. */
51
52 char *ds_get_resource        P((XrmDatabase, char *, char *)) ;
53
54 int ds_get_choice_value      P((Widget)) ;
55 int ds_get_strwidth          P((XFontStruct *, char *)) ;
56 int ds_save_resources        P((XrmDatabase, char *)) ;
57
58 void ds_add_help             P((Widget, char *)) ;
59 void ds_beep                 P((Display *)) ;
60 void ds_get_geometry_size    P((char *, int *, int *)) ;
61 void ds_get_frame_size       P((Widget, int *, int *, int *, int *)) ;
62 void ds_put_resource         P((XrmDatabase *, char *, char *, char *)) ;
63 void ds_save_cmdline         P((Display *, Window, int, char **)) ;
64 void ds_set_choice_value     P((Widget, int)) ;
65 void ds_set_frame_size       P((Widget, int, int, int, int)) ;
66
67 XrmDatabase ds_load_resources     P((Display *)) ;
68
69 #endif /*_ds_xlib_h*/