/*
* Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* CONECTIVA LINUX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* Except as contained in this notice, the name of Conectiva Linux shall
* not be used in advertising or otherwise to promote the sale, use or other
* dealings in this Software without prior written authorization from
* Conectiva Linux.
*
* Author: Paulo César Pereira de Andrade <pcpa@conectiva.com.br>
*
*/
#ifdef HAVE_CONFIG_H
# include "xorg-config.h"
#endif
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <string.h>
#ifdef sun
#include <strings.h>
#endif
#include <unistd.h>
#include <stdarg.h>
#ifdef __UNIXOS2__
#endif
/* Get PATH_MAX */
#ifndef PATH_MAX
# if defined(_POSIX_SOURCE)
# include <limits.h>
# else
# define _POSIX_SOURCE
# include <limits.h>
# endif
# ifndef PATH_MAX
# ifdef MAXPATHLEN
# else
# endif
# endif
#endif
#include <xf86Parser.h>
#ifndef _xf86cfg_config_h
#define _xf86cfg_config_h
/* Must match the offset in the xf86info structure at config.c,
* and is used also by interface.c
*/
#define MOUSE 0
#define UNUSED 0
#define CONFIG_LAYOUT 0
extern int config_mode;
#ifndef __UNIXOS2__
"%E," "%F," \
"%D/%X," \
#else
"%A," "%R," \
"%E," "%F," \
"%D/%X," \
#endif
/*
* Types
*/
typedef struct _XF86SetupFunctionList {
int num_functions;
int cur_function;
struct _XF86SetupInfo {
int num_lists;
int cur_list;
};
struct _xf86cfgDevice {
};
typedef struct {
short rotate;
/* this structure is used just to restore
properly the monitors layout in the
screen window configuration.
*/
typedef struct {
int num_layouts;
/* The vidmode extension usage is controlled by this structure.
* The information is read at startup, and added monitors cannot
* be configured, since they are not attached to a particular screen.
*/
typedef struct {
/*
* Prototypes
*/
void StartConfig(void);
void ConfigError(void);
void SetTip(xf86cfgDevice*);
void endx(void);
void startaccessx(void);
void ExpertConfigureStart(void);
void ExpertConfigureEnd(void);
/*
* Initialization
*/
extern XtAppContext appcon;
extern XF86SetupInfo xf86info;
extern Widget ident_widget;
extern char *ident_string;
extern XF86ConfigPtr XF86Config;
extern char *XF86Config_path;
extern char *XF86Module_path;
extern char *XFree86_path;
extern char *XF86Font_path;
extern char *XF86RGB_path;
extern char *XFree86Dir;
extern xf86cfgComputer computer;
extern Atom wm_delete_window;
extern Pixmap menuPixmap;
#ifdef USE_MODULES
extern int nomodules;
#endif
#endif /* _xf86cfg_config_h */