1/****************************************************************************** 2 * 3 * Copyright (c) 1994, 1995 Hewlett-Packard Company 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining 6 * a copy of this software and associated documentation files (the 7 * "Software"), to deal in the Software without restriction, including 8 * without limitation the rights to use, copy, modify, merge, publish, 9 * distribute, sublicense, and/or sell copies of the Software, and to 10 * permit persons to whom the Software is furnished to do so, subject to 11 * the following conditions: 12 * 13 * The above copyright notice and this permission notice shall be included 14 * in all copies or substantial portions of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 * IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, 20 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 21 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 22 * THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 * 24 * Except as contained in this notice, the name of the Hewlett-Packard 25 * Company shall not be used in advertising or otherwise to promote the 26 * sale, use or other dealings in this Software without prior written 27 * authorization from the Hewlett-Packard Company. 28 * 29 * Header file for Xlib-related DBE 30 * 31 *****************************************************************************/ 32 33#ifndef DBE_H 34#define DBE_H 35 36/* Values for swap_action field of XdbeSwapInfo structure */ 37#define XdbeUndefined 0 38#define XdbeBackground 1 39#define XdbeUntouched 2 40#define XdbeCopied 3 41 42/* Errors */ 43#define XdbeBadBuffer 0 44 45#define DBE_PROTOCOL_NAME "DOUBLE-BUFFER" 46 47/* Current version numbers */ 48#define DBE_MAJOR_VERSION 1 49#define DBE_MINOR_VERSION 0 50 51/* Used when adding extension; also used in Xdbe macros */ 52#define DbeNumberEvents 0 53#define DbeBadBuffer 0 54#define DbeNumberErrors (DbeBadBuffer + 1) 55 56#endif /* DBE_H */ 57 58