1706f2543Smrg/* 2706f2543Smrg * Copyright 2005 Red Hat Inc., Raleigh, North Carolina. 3706f2543Smrg * 4706f2543Smrg * All Rights Reserved. 5706f2543Smrg * 6706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining 7706f2543Smrg * a copy of this software and associated documentation files (the 8706f2543Smrg * "Software"), to deal in the Software without restriction, including 9706f2543Smrg * without limitation on the rights to use, copy, modify, merge, 10706f2543Smrg * publish, distribute, sublicense, and/or sell copies of the Software, 11706f2543Smrg * and to permit persons to whom the Software is furnished to do so, 12706f2543Smrg * subject to the following conditions: 13706f2543Smrg * 14706f2543Smrg * The above copyright notice and this permission notice (including the 15706f2543Smrg * next paragraph) shall be included in all copies or substantial 16706f2543Smrg * portions of the Software. 17706f2543Smrg * 18706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19706f2543Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20706f2543Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21706f2543Smrg * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS 22706f2543Smrg * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 23706f2543Smrg * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 24706f2543Smrg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 25706f2543Smrg * SOFTWARE. 26706f2543Smrg */ 27706f2543Smrg 28706f2543Smrg/* 29706f2543Smrg * Authors: 30706f2543Smrg * Kevin E. Martin <kem@redhat.com> 31706f2543Smrg * 32706f2543Smrg */ 33706f2543Smrg 34706f2543Smrg/** \file 35706f2543Smrg * Provide configuration define's and undef's to build Xdmx in X.Org's 36706f2543Smrg * modular source tree. 37706f2543Smrg */ 38706f2543Smrg 39706f2543Smrg#ifndef DMX_CONFIG_H 40706f2543Smrg#define DMX_CONFIG_H 41706f2543Smrg 42706f2543Smrg#include <dix-config.h> 43706f2543Smrg 44706f2543Smrg/* 45706f2543Smrg * Note 1: This is a signed int that is printed as a decimal number. 46706f2543Smrg * Since we want to make it human-interpretable, the fields are 47706f2543Smrg * defined as: 48706f2543Smrg * 2147483648 49706f2543Smrg * AAbbyymmdd 50706f2543Smrg * AA: major version 01-20 51706f2543Smrg * bb: minor version 00-99 52706f2543Smrg * yy: year 00-99 [See Note 2] 53706f2543Smrg * mm: month 01-12 54706f2543Smrg * dd: day 01-31 55706f2543Smrg * 56706f2543Smrg * Note 2: The default epoch for the year is 2000. 57706f2543Smrg * To change the default epoch, change the DMX_VENDOR_RELEASE 58706f2543Smrg * macro below, bumb the minor version number, and change 59706f2543Smrg * xdpyinfo to key off the major/minor version to determine the 60706f2543Smrg * new epoch. Remember to do this on January 1, 2100 and every 61706f2543Smrg * 100 years thereafter. 62706f2543Smrg */ 63706f2543Smrg#define DMX_VENDOR_RELEASE(major,minor,year,month,day) \ 64706f2543Smrg ((major) * 100000000) + \ 65706f2543Smrg ((minor) * 1000000) + \ 66706f2543Smrg ((year-2000) * 10000) + \ 67706f2543Smrg ((month) * 100) + \ 68706f2543Smrg ((day) * 1) 69706f2543Smrg#define VENDOR_RELEASE DMX_VENDOR_RELEASE(1,2,2007,4,24) 70706f2543Smrg#define VENDOR_STRING "DMX Project" 71706f2543Smrg 72706f2543Smrg/* Enable the DMX extension */ 73706f2543Smrg#define DMXEXT 74706f2543Smrg 75706f2543Smrg#endif /* DMX_CONFIG_H */ 76