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