###############################################################################
#
# libXfont version mapfile
#
# Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
#
# 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 to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell 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 (including the next
# paragraph) 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 AUTHORS OR 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.
#

SUNWprivate {
    global:
	# "src/builtins/builtin.h" - needed by X servers
	BuiltinFileOpen;
	BuiltinFileClose;
	BuiltinReadDirectory;
	BuiltinRegisterFontFileFunctions;
	BuiltinRegisterFpeFunctions;

	# <X11/fonts/bdfint.h>
	bdfError;
	bdfWarning;
	bdfGetLine;
	bdfForceMakeAtom;
	bdfGetPropertyValue;
	bdfIsInteger;
	bdfHexByte;
	bdfSpecialProperty;
	bdfReadFont;
	bdfReadFontInfo;
	FontCharInkMetrics;
	FontCharReshape;

	# <X11/fonts/bufio.h>
	BufFileCreate;
	BufFileOpenRead;
	BufFileOpenWrite;
	BufFilePushCompressed;
	BufFilePushZIP;
	BufFilePushBZIP2;
	BufFileClose;
	BufFileRead;
	BufFileWrite;

	# <X11/fonts/font.h>
	MakeFontNamesRecord;
	FreeFontNames;
	AddFontNamesName;
	MakeFontPatternCache;
	FreeFontPatternCache;
	EmptyFontPatternCache;
	CacheFontPattern;
	GetClientResolutions = NODIRECT;
	FindCachedFontPattern;
	RemoveCachedFontPattern;

	# <X11/fonts/fntfil.h>
	FontFileNameCheck;
	FontFileInitFPE;
	FontFileResetFPE;
	FontFileFreeFPE;
	FontFileOpenFont;
	FontFileCloseFont;
	FontFileOpenBitmap;
	FontFileListFonts;
	FontFileStartListFonts;
	FontFileStartListFontsWithInfo;
	FontFileListNextFontWithInfo;
	FontFileStartListFontsAndAliases;
	FontFileListNextFontOrAlias;
	FontFileRegisterLocalFpeFunctions;
	CatalogueRegisterLocalFpeFunctions;
	FontFileAddEntry;
	FontFileAddFontAlias;
	FontFileAddFontFile;
	FontFileCountDashes;
	FontFileFindNameInDir;
	FontFileFindNameInScalableDir;
	FontFileFindNamesInDir;
	FontFileFindNamesInScalableDir;
	FontFileFreeDir;
	FontFileFreeEntry;
	FontFileFreeTable;
	FontFileInitTable;
	FontFileMakeDir;
	FontFileMatchName;
	FontFileSaveString;
	FontFileSortDir;
	FontFileSortTable;
	FontDefaultFormat;
	FontFileRegisterRenderer;
	FontFilePriorityRegisterRenderer;
	FontFileMatchRenderer;
	FontFileAddScaledInstance;
	FontFileSwitchStringsToBitmapPointers;
	FontFileRemoveScaledInstance;
	FontFileCompleteXLFD;
	FontFileFindScaledInstance;
	FontFileRegisterBitmapSource;
	FontFileUnregisterBitmapSource;
	FontFileEmptyBitmapSource;
	FontFileMatchBitmapSource;
	FontFileReadDirectory;
	FontFileDirectoryChanged;

	# <X11/fonts/fntfilio.h>
	FontFileOpen;
	FontFileClose;
	FontFileOpenWrite;
	FontFileOpenWriteFd;
	FontFileOpenFd;

	# <X11/fonts/fntfilst.h>
	FontFileBitmapSources;

	# <X11/fonts/fontmisc.h>
	MakeAtom = NODIRECT;
	ValidAtom = NODIRECT;
	NameForAtom = NODIRECT;
	BitOrderInvert;
	TwoByteSwap;
	FourByteSwap;
	RepadBitmap;
	register_fpe_functions = NODIRECT;

	# <X11/fonts/fontproto.h>
	RegisterFPEFunctions = NODIRECT;
	GetDefaultPointSize = NODIRECT;
	init_fs_handlers = NODIRECT;
	remove_fs_handlers = NODIRECT;
	client_auth_generation = NODIRECT;
	ClientSignal = NODIRECT;
	DeleteFontClientID = NODIRECT;
	GetNewFontClientID = NODIRECT;
	StoreFontClientFont = NODIRECT;
	FontFileRegisterFpeFunctions;
	fs_register_fpe_functions;
	CreateFontRec;
	DestroyFontRec;
	AllocateFontPrivateIndex;
	ResetFontPrivateIndex;
	FreeTypeRegisterFontFileFunctions;

	# <X11/fonts/fontstruct.h>
	_FontSetNewPrivate;

	# <X11/fonts/fontutil.h>
	FontCouldBeTerminal;
	CheckFSFormat;
	FontComputeInfoAccelerators;
	GetGlyphs;
	QueryGlyphExtents;
	QueryTextExtents;
	ParseGlyphCachingMode;
	InitGlyphCaching;
	SetGlyphCachingMode;
	add_range;

	# <X11/fonts/fontxlfd.h>
	xlfd_round_double;
	FontParseXLFDName;
	FontParseRanges;

	# <X11/fonts/pcf.h>
	pcfReadFont;
	pcfReadFontInfo;
	pcfWriteFont;
	pcfError;

    local:
	# Additional weak symbols
	ErrorF = NODIRECT;
	find_old_font = NODIRECT;
	GetTimeInMillis = NODIRECT;
	serverClient = NODIRECT;
	set_font_authorizations = NODIRECT;
	serverGeneration = NODIRECT;

# Need to make sure _FontTrans* aren't exported to avoid conflicts with server
# versions in xfs binary
	*;
};