File: optutil.h

package info (click to toggle)
xcopilot 1%3A0.6.6
  • links: PTS
  • area: contrib
  • in suites: potato, slink
  • size: 3,252 kB
  • ctags: 3,406
  • sloc: ansic: 37,932; cpp: 1,918; sh: 329; makefile: 68
file content (47 lines) | stat: -rw-r--r-- 1,503 bytes parent folder | download
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
/* option utilities library
   Copyright 1998 Gene McCulley <mcculley@cuspy.com>, Cuspy Solutions, Inc.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

#ifndef OPTUTIL_INCLUDED
#define OPTUTIL_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif

#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <stdio.h>

typedef struct {
  char *parameters;
  char *help;
  XtResource resource;
  XrmOptionDescRec option;
} ResourceOption;

extern XtResource *OU_GetResources(const ResourceOption *ros, unsigned num_ros);
extern XrmOptionDescRec *OU_GetOptions(const ResourceOption *ros,
                                       unsigned num_ros);
extern void OU_DumpOptions(const ResourceOption *ros, unsigned num_ros,
                           FILE *fp);
extern void OU_GetEnvironment(const char *varname, char **argv[], int *argc);

#ifdef __cplusplus
}
#endif

#endif