# dmx-config.h

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 2005 Red Hat Inc., Raleigh, North Carolina.
    00003  *
    00004  * All Rights Reserved.
    00005  *
    00006  * Permission is hereby granted, free of charge, to any person obtaining
    00007  * a copy of this software and associated documentation files (the
    00008  * "Software"), to deal in the Software without restriction, including
    00009  * without limitation on the rights to use, copy, modify, merge,
    00010  * publish, distribute, sublicense, and/or sell copies of the Software,
    00011  * and to permit persons to whom the Software is furnished to do so,
    00012  * subject to the following conditions:
    00013  *
    00014  * The above copyright notice and this permission notice (including the
    00015  * next paragraph) shall be included in all copies or substantial
    00016  * portions of the Software.
    00017  *
    00018  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    00019  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    00020  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    00021  * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
    00022  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
    00023  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    00024  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    00025  * SOFTWARE.
    00026  */
    00027
    00028 /*
    00029  * Authors:
    00030  *   Kevin E. Martin <kem@redhat.com>
    00031  *
    00032  */
    00033
    00039 #ifndef DMX_CONFIG_H
    00040 #define DMX_CONFIG_H
    00041
    00042 #include <dix-config.h>
    00043
    00044 /*
    00045  * Note 1: This is a signed int that is printed as a decimal number.
    00046  *         Since we want to make it human-interpretable, the fields are
    00047  *         defined as:
    00048  *         2147483648
    00049  *         AAbbyymmdd
    00050  *         AA: major version 01-20
    00051  *         bb: minor version 00-99
    00052  *         yy: year          00-99 [See Note 2]
    00053  *         mm: month         01-12
    00054  *         dd: day           01-31
    00055  *
    00056  * Note 2: The default epoch for the year is 2000.
    00057  *         To change the default epoch, change the DMX_VENDOR_RELEASE
    00058  *         macro below, bumb the minor version number, and change
    00059  *         xdpyinfo to key off the major/minor version to determine the
    00060  *         new epoch.  Remember to do this on January 1, 2100 and every
    00061  *         100 years thereafter.
    00062  */
    00063 #define DMX_VENDOR_RELEASE(major,minor,year,month,day) \
    00064     ((major)     * 100000000) + \
    00065     ((minor)     *   1000000) + \
    00066     ((year-2000) *     10000) + \
    00067     ((month)     *       100) + \
    00068     ((day)       *         1)
    00069 #define VENDOR_RELEASE  DMX_VENDOR_RELEASE(1,2,2007,4,24)
    00070 #define VENDOR_STRING   "DMX Project"
    00071
    00072 /* Enable the DMX extension */
    00073 #define DMXEXT
    00074
    00075 #endif /* DMX_CONFIG_H */