xkbpath.h revision f46a6179
1/* $XConsortium $ */
2/************************************************************
3 Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for any purpose and without
7 fee is hereby granted, provided that the above copyright
8 notice appear in all copies and that both that copyright
9 notice and this permission notice appear in supporting
10 documentation, and that the name of Silicon Graphics not be
11 used in advertising or publicity pertaining to distribution
12 of the software without specific prior written permission.
13 Silicon Graphics makes no representation about the suitability
14 of this software for any purpose. It is provided "as is"
15 without any express or implied warranty.
16
17 SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
18 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19 AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
20 GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
21 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
22 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
23 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
24 THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
26 ********************************************************/
27/* $XFree86: xc/programs/xkbcomp/xkbpath.h,v 1.3 2002/07/01 02:26:01 tsi Exp $ */
28
29#ifndef _XKBPATH_H_
30#define _XKBPATH_H_ 1
31
32extern	Bool	XkbInitIncludePath(
33	void
34);
35
36extern	void	XkbClearIncludePath(
37	void
38);
39
40extern	void	XkbAddDefaultDirectoriesToPath(
41	void
42);
43
44extern	Bool	XkbAddDirectoryToPath(
45	const char *	/* dir */
46);
47
48extern char *	XkbDirectoryForInclude(
49    unsigned	/* type */
50);
51
52extern	FILE	*XkbFindFileInPath(
53    char *	/* name */,
54    unsigned	/* type */,
55    char **	/* pathRtrn */
56);
57
58extern	void *	XkbAddFileToCache(
59    char *	/* name */,
60    unsigned	/* type */,
61    char *	/* path */,
62    void *	/* data */
63);
64
65extern	void *	XkbFindFileInCache(
66    char *	/* name */,
67    unsigned	/* type */,
68    char **	/* pathRtrn */
69);
70
71extern Bool	XkbParseIncludeMap(
72    char **	/* str_inout */,
73    char **	/* file_rtrn */,
74    char **	/* map_rtrn */,
75    char *	/* nextop_rtrn */,
76    char **     /* extra_data */
77);
78
79#endif /* _XKBPATH_H_ */
80