1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright 2005 Red Hat Inc., Raleigh, North Carolina. 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * All Rights Reserved. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Permission is hereby granted, free of charge, to any person obtaining 7*4882a593Smuzhiyun * a copy of this software and associated documentation files (the 8*4882a593Smuzhiyun * "Software"), to deal in the Software without restriction, including 9*4882a593Smuzhiyun * without limitation on the rights to use, copy, modify, merge, 10*4882a593Smuzhiyun * publish, distribute, sublicense, and/or sell copies of the Software, 11*4882a593Smuzhiyun * and to permit persons to whom the Software is furnished to do so, 12*4882a593Smuzhiyun * subject to the following conditions: 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * The above copyright notice and this permission notice (including the 15*4882a593Smuzhiyun * next paragraph) shall be included in all copies or substantial 16*4882a593Smuzhiyun * portions of the Software. 17*4882a593Smuzhiyun * 18*4882a593Smuzhiyun * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19*4882a593Smuzhiyun * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20*4882a593Smuzhiyun * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21*4882a593Smuzhiyun * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS 22*4882a593Smuzhiyun * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 23*4882a593Smuzhiyun * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 24*4882a593Smuzhiyun * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 25*4882a593Smuzhiyun * SOFTWARE. 26*4882a593Smuzhiyun */ 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun /* 29*4882a593Smuzhiyun * Authors: 30*4882a593Smuzhiyun * Kevin E. Martin <kem@redhat.com> 31*4882a593Smuzhiyun * 32*4882a593Smuzhiyun */ 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun /** \file 35*4882a593Smuzhiyun * Provide configuration define's and undef's to build Xdmx in X.Org's 36*4882a593Smuzhiyun * modular source tree. 37*4882a593Smuzhiyun */ 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun #ifndef DMX_CONFIG_H 40*4882a593Smuzhiyun #define DMX_CONFIG_H 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun #include <dix-config.h> 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun /* 45*4882a593Smuzhiyun * Note 1: This is a signed int that is printed as a decimal number. 46*4882a593Smuzhiyun * Since we want to make it human-interpretable, the fields are 47*4882a593Smuzhiyun * defined as: 48*4882a593Smuzhiyun * 2147483648 49*4882a593Smuzhiyun * AAbbyymmdd 50*4882a593Smuzhiyun * AA: major version 01-20 51*4882a593Smuzhiyun * bb: minor version 00-99 52*4882a593Smuzhiyun * yy: year 00-99 [See Note 2] 53*4882a593Smuzhiyun * mm: month 01-12 54*4882a593Smuzhiyun * dd: day 01-31 55*4882a593Smuzhiyun * 56*4882a593Smuzhiyun * Note 2: The default epoch for the year is 2000. 57*4882a593Smuzhiyun * To change the default epoch, change the DMX_VENDOR_RELEASE 58*4882a593Smuzhiyun * macro below, bumb the minor version number, and change 59*4882a593Smuzhiyun * xdpyinfo to key off the major/minor version to determine the 60*4882a593Smuzhiyun * new epoch. Remember to do this on January 1, 2100 and every 61*4882a593Smuzhiyun * 100 years thereafter. 62*4882a593Smuzhiyun */ 63*4882a593Smuzhiyun #define DMX_VENDOR_RELEASE(major,minor,year,month,day) \ 64*4882a593Smuzhiyun ((major) * 100000000) + \ 65*4882a593Smuzhiyun ((minor) * 1000000) + \ 66*4882a593Smuzhiyun ((year-2000) * 10000) + \ 67*4882a593Smuzhiyun ((month) * 100) + \ 68*4882a593Smuzhiyun ((day) * 1) 69*4882a593Smuzhiyun #define VENDOR_RELEASE DMX_VENDOR_RELEASE(1,2,2007,4,24) 70*4882a593Smuzhiyun #define VENDOR_STRING "DMX Project" 71*4882a593Smuzhiyun 72*4882a593Smuzhiyun /* Enable the DMX extension */ 73*4882a593Smuzhiyun #define DMXEXT 74*4882a593Smuzhiyun 75*4882a593Smuzhiyun #endif /* DMX_CONFIG_H */ 76