AttrValid.h revision b8e299dddd091ae24e0c08c45d91b8f937bd14d2
/* $Xorg: AttrValid.h,v 1.4 2001/03/14 18:43:40 pookie Exp $ */
/*
(c) Copyright 1996 Hewlett-Packard Company
(c) Copyright 1996 International Business Machines Corp.
(c) Copyright 1996 Sun Microsystems, Inc.
(c) Copyright 1996 Novell, Inc.
(c) Copyright 1996 Digital Equipment Corp.
(c) Copyright 1996 Fujitsu Limited
(c) Copyright 1996 Hitachi, Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the names of the copyright holders shall
not be used in advertising or otherwise to promote the sale, use or other
dealings in this Software without prior written authorization from said
copyright holders.
*/
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
#ifndef _Xp_AttrValid_h
#define _Xp_AttrValid_h
#include "Oid.h"
#define XpNumber(a) (sizeof(a) / sizeof(*(a)))
/*
* Attribute pool validation valid values and defaults
*/
typedef struct
{
/*
* XpOid resource access
*/
#ifdef _XP_PRINT_SERVER_ /* needed for XpContextPtr in Printstr.h */
/*
* XpOid-valued attribute access
*/
const XpOidList* valid_oid_list);
const XpOidList* valid_oids,
/*
* cardinal-valued attribute access
*/
const XpOidCardList* valid_card_list);
unsigned long value_card);
const XpOidCardList* valid_cards,
unsigned long default_card);
/*
* XpOidList-valued attribute access
*/
const XpOidList* valid_oid_list);
const XpOidList* valid_oids,
const XpOidList* default_oids);
/*
* XpOidCardList-valued attribute access
*/
const XpOidCardList* valid_card_list);
const XpOidCardList* list);
const XpOidCardList* valid_cards,
const XpOidCardList* default_cards);
/*
* XpOidDocFmtList-valued attribute access
*/
const XpOidDocFmtList* valid_fmt_list);
const XpOidDocFmtList* list);
const XpOidDocFmtList* valid_fmts,
const XpOidDocFmtList* default_fmts);
/*
* XpOidMediumSS-valued attribute access
*/
const XpOidList* valid_trays,
const XpOidList* valid_sizes);
const XpOidMediumSS* msss);
const XpOidMediumSS* XpGetDefaultMediumSS();
/*
* XpOidTrayMediumList-valued attribute access
*/
const XpOidList* valid_trays,
const XpOidMediumSS* msss);
const XpOidTrayMediumList* tm);
/*
* Attribute pool validation
*/
const XpValidatePoolsRec* vpr);
const XpValidatePoolsRec* vpr);
const XpValidatePoolsRec* vpr);
const XpValidatePoolsRec* vpr);
const XpValidatePoolsRec* vpr);
#endif /* _XP_PRINT_SERVER_ */
#endif /* _Xp_AttrValid_h - don't add anything after this line */