dpsdict.h revision 824
98N/A/*
98N/A * dpsdict.h
199N/A *
98N/A * (c) Copyright 1988-1994 Adobe Systems Incorporated.
943N/A * All rights reserved.
98N/A *
98N/A * Permission to use, copy, modify, distribute, and sublicense this software
919N/A * and its documentation for any purpose and without fee is hereby granted,
919N/A * provided that the above copyright notices appear in all copies and that
919N/A * both those copyright notices and this permission notice appear in
919N/A * supporting documentation and that the name of Adobe Systems Incorporated
919N/A * not be used in advertising or publicity pertaining to distribution of the
919N/A * software without specific, written prior permission. No trademark license
919N/A * to use the Adobe trademarks is hereby granted. If the Adobe trademark
919N/A * "Display PostScript"(tm) is used to describe this software, its
919N/A * functionality or for any other purpose, such use shall be limited to a
919N/A * statement that this software works in conjunction with the Display
919N/A * PostScript system. Proper trademark attribution to reflect Adobe's
919N/A * ownership of the trademark shall be given whenever any such reference to
919N/A * the Display PostScript system is made.
919N/A *
919N/A * ADOBE MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR
919N/A * ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
919N/A * ADOBE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
98N/A * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
98N/A * NON- INFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL ADOBE BE LIABLE
98N/A * TO YOU OR ANY OTHER PARTY FOR ANY SPECIAL, INDIRECT, OR CONSEQUENTIAL
98N/A * DAMAGES OR ANY DAMAGES WHATSOEVER WHETHER IN AN ACTION OF CONTRACT,
493N/A * NEGLIGENCE, STRICT LIABILITY OR ANY OTHER ACTION ARISING OUT OF OR IN
98N/A * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ADOBE WILL NOT
98N/A * PROVIDE ANY TRAINING OR OTHER SUPPORT FOR THE SOFTWARE.
814N/A *
98N/A * Adobe, PostScript, and Display PostScript are trademarks of Adobe Systems
911N/A * Incorporated which may be registered in certain jurisdictions
911N/A *
911N/A * Author: Adobe Systems Incorporated
911N/A */
98N/A
567N/A#ifndef PSWDICT_H
720N/A#define PSWDICT_H
832N/A
851N/A#include <X11/X.h>
863N/A
881N/A#include "publictypes.h"
956N/A
956N/Atypedef struct _PSWDictRec *PSWDict;
98N/A/* Opaque designator for a dictionary */
98N/A
98N/Atypedef int PSWDictValue; /* non-negative */
493N/A
493N/A/* PROCEDURES */
98N/A
705N/A/* The name parameters defined below are NULL-terminated C strings.
705N/A None of the name parameters are handed off, i.e. the caller is
705N/A responsible for managing their storage. */
705N/A
606N/Aextern PSWDict DPSCreatePSWDict(integer /* nEntries */);
606N/A/* nEntries is a hint. Creates and returns a new dictionary */
98N/A
98N/Aextern void DPSDestroyPSWDict(PSWDict /* dict */);
493N/A/* Destroys a dictionary */
493N/A
957N/Aextern PSWDictValue DPSWDictLookup(PSWDict /* dict */, char * /* name */);
98N/A/* -1 => not found. */
493N/A
493N/Aextern PSWDictValue DPSWDictEnter
98N/A (PSWDict /* dict */, char * /* name */, PSWDictValue /* value */);
98N/A/* 0 => normal return (not found)
199N/A -1 => found. If found, the old value gets replaced with the new one.
199N/A caller must ensure continuing validity of name. */
493N/A
493N/Aextern PSWDictValue DPSWDictRemove(PSWDict /* dict */, char * /* name */);
910N/A/* -1 => not found. If found, value is returned. */
910N/A
910N/Aextern Atom DPSMakeAtom(char * /* name */);
957N/A/* name characters are copied. */
957N/A
957N/A#endif /* PSWDICT_H */
957N/A