117ca54c3Smrg/******************************************************************************
217ca54c3Smrg *
317ca54c3Smrg * Copyright (c) 1994, 1995  Hewlett-Packard Company
417ca54c3Smrg *
517ca54c3Smrg * Permission is hereby granted, free of charge, to any person obtaining
617ca54c3Smrg * a copy of this software and associated documentation files (the
717ca54c3Smrg * "Software"), to deal in the Software without restriction, including
817ca54c3Smrg * without limitation the rights to use, copy, modify, merge, publish,
917ca54c3Smrg * distribute, sublicense, and/or sell copies of the Software, and to
1017ca54c3Smrg * permit persons to whom the Software is furnished to do so, subject to
1117ca54c3Smrg * the following conditions:
1217ca54c3Smrg *
1317ca54c3Smrg * The above copyright notice and this permission notice shall be included
1417ca54c3Smrg * in all copies or substantial portions of the Software.
1517ca54c3Smrg *
1617ca54c3Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1717ca54c3Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1817ca54c3Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1917ca54c3Smrg * IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM,
2017ca54c3Smrg * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
2117ca54c3Smrg * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
2217ca54c3Smrg * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2317ca54c3Smrg *
2417ca54c3Smrg * Except as contained in this notice, the name of the Hewlett-Packard
2517ca54c3Smrg * Company shall not be used in advertising or otherwise to promote the
2617ca54c3Smrg * sale, use or other dealings in this Software without prior written
2717ca54c3Smrg * authorization from the Hewlett-Packard Company.
2817ca54c3Smrg *
2917ca54c3Smrg *     Header file for Xlib-related DBE
3017ca54c3Smrg *
3117ca54c3Smrg *****************************************************************************/
3217ca54c3Smrg
3317ca54c3Smrg#ifndef DBE_H
3417ca54c3Smrg#define DBE_H
3517ca54c3Smrg
3617ca54c3Smrg/* Values for swap_action field of XdbeSwapInfo structure */
3717ca54c3Smrg#define XdbeUndefined    0
3817ca54c3Smrg#define XdbeBackground   1
3917ca54c3Smrg#define XdbeUntouched    2
4017ca54c3Smrg#define XdbeCopied       3
4117ca54c3Smrg
4217ca54c3Smrg/* Errors */
4317ca54c3Smrg#define XdbeBadBuffer    0
4417ca54c3Smrg
4517ca54c3Smrg#define DBE_PROTOCOL_NAME "DOUBLE-BUFFER"
4617ca54c3Smrg
4717ca54c3Smrg/* Current version numbers */
4817ca54c3Smrg#define DBE_MAJOR_VERSION       1
4917ca54c3Smrg#define DBE_MINOR_VERSION       0
5017ca54c3Smrg
5117ca54c3Smrg/* Used when adding extension; also used in Xdbe macros */
5217ca54c3Smrg#define DbeNumberEvents			0
5317ca54c3Smrg#define DbeBadBuffer			0
5417ca54c3Smrg#define DbeNumberErrors			(DbeBadBuffer + 1)
5517ca54c3Smrg
5617ca54c3Smrg#endif /* DBE_H */
5717ca54c3Smrg
58