#
# Copyright (c) 2008, 2015, 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.
#

SUNW_1.1 {
    global:

# AllPlanes.c
	XAllPlanesQueryExtension;
	XAllPlanesQueryVersion;
	XAllPlanesDrawLines;
	XAllPlanesDrawPoints;
	XAllPlanesDrawRectangles;
	XAllPlanesDrawSegments;
	XAllPlanesFillRectangles;
	
# DPMS.c
	DPMSQueryExtension;
	DPMSGetVersion;
	DPMSCapable;
	DPMSSetTimeouts;
	DPMSGetTimeouts;
	DPMSEnable;
	DPMSDisable;
	DPMSForceLevel;
	DPMSInfo;

# FBPM.c
	FBPMQueryExtension;
	FBPMGetVersion;
	FBPMCapable;
	FBPMDisable;
	FBPMEnable;
	FBPMForceLevel;
	FBPMInfo;	

# MITMisc.c
	XMITMiscQueryExtension;
	XMITMiscSetBugMode;
	XMITMiscGetBugMode;
	
# TransOvl.c
	XSolarisOvlQueryExtension;
	XSolarisOvlQueryVersion;
	XSolarisOvlCreateWindow;
	XSolarisOvlCopyAreaAndPaintType;
	XSolarisOvlCopyPaintType;
	XSolarisOvlGetPaintType;
	XSolarisOvlIsOverlayWindow;
	XSolarisOvlSelectPair;
	XSolarisOvlSelectPartner;
	XSolarisOvlSetPaintType;
	XSolarisOvlSetWindowTransparent;
	XReadScreen;

# XAppgroup.c
	XagQueryVersion;
	XagCreateEmbeddedApplicationGroup;
	XagCreateNonembeddedApplicationGroup;
	XagDestroyApplicationGroup;
	XagGetApplicationGroupAttributes;
	XagQueryApplicationGroup;
	XagCreateAssociation;
	XagDestroyAssociation;

# XEVI.c
	XeviQueryExtension;
	XeviQueryVersion;
	XeviGetVisualInfo;

# Xge.c
	XGEQueryExtension;
	XGEQueryVersion;

# XGrabWin.c
	XGetRetainedPath;
	XGrabColormap;	
	XGrabRetainedWindow;
	XGrabWindow;
	XUnGrabColormap;
	XUnGrabRetainedWindow;
	XUnGrabWindow;

# XLbx.c
	XLbxQueryExtension;
	XLbxGetEventBase;
	XLbxQueryVersion;

# XMultibuf.c
	XmbufQueryExtension;
	XmbufGetVersion;
	XmbufCreateBuffers;
	XmbufDestroyBuffers;
	XmbufDisplayBuffers;
	XmbufGetWindowAttributes;
	XmbufChangeWindowAttributes;
	XmbufGetBufferAttributes;
	XmbufChangeBufferAttributes;
	XmbufGetScreenInfo;
	XmbufCreateStereoWindow;
	XmbufClearBufferArea;

# XPanoramiX.c
	XPanoramiXQueryExtension;
	XPanoramiXQueryVersion;
	XPanoramiXAllocInfo;	
	XPanoramiXGetScreenCount;
	XPanoramiXGetScreenSize;
	XPanoramiXGetState;

# XSecurity.c
	XSecurityQueryExtension;
	XSecurityAllocXauth;
	XSecurityFreeXauth;
	XSecurityGenerateAuthorization;
	XSecurityRevokeAuthorization;

# XShape.c
	XShapeQueryExtension;
	XShapeQueryVersion;
	XShapeCombineRegion;
	XShapeCombineRectangles;
	XShapeCombineMask;
	XShapeCombineShape;
	XShapeOffsetShape;
	XShapeQueryExtents;
	XShapeSelectInput;
	XShapeInputSelected;
	XShapeGetRectangles;

# XShm.c
	XShmQueryExtension;
	XShmGetEventBase;
	XShmQueryVersion;
	XShmPixmapFormat;
	XShmAttach;
	XShmDetach;
	XShmCreateImage;
	XShmPutImage;
	XShmGetImage;
	XShmCreatePixmap;

# XSync.c
	XSyncQueryExtension;
	XSyncInitialize;
	XSyncListSystemCounters;
	XSyncFreeSystemCounterList;
	XSyncCreateCounter;
	XSyncSetCounter;
	XSyncChangeCounter;
	XSyncDestroyCounter;
	XSyncQueryCounter;
	XSyncAwait;
	XSyncCreateAlarm;
	XSyncDestroyAlarm;
	XSyncQueryAlarm;
	XSyncChangeAlarm;
	XSyncSetPriority;
	XSyncGetPriority;
	XSyncIntToValue;
	XSyncIntsToValue;
	XSyncValueGreaterThan;
	XSyncValueLessThan;
	XSyncValueGreaterOrEqual;
	XSyncValueLessOrEqual;
	XSyncValueEqual;
	XSyncValueIsNegative;
	XSyncValueIsZero;
	XSyncValueIsPositive;
	XSyncValueLow32;
	XSyncValueHigh32;
	XSyncValueAdd;
	XSyncValueSubtract;
	XSyncMaxValue;
	XSyncMinValue;
# Added in libXext 1.3.0 - PSARC/2011/213 X Sync Extension version 3.1:
	XSyncAwaitFence;
	XSyncCreateFence;
	XSyncDestroyFence;
	XSyncQueryFence;
	XSyncResetFence;
	XSyncTriggerFence;

# XTestExt1.c
	XTestFakeInput;
	XTestGetInput;
	XTestStopInput;
	XTestReset;
	XTestQueryInputSize;
	XTestPressKey;
	XTestPressButton;
	XTestMovePointer;
	XTestFlush;

# Xcup.c
	XcupQueryVersion;
	XcupGetReservedColormapEntries;
	XcupStoreColors;

# Xdbe.c
	XdbeQueryExtension;
	XdbeAllocateBackBufferName;
	XdbeDeallocateBackBufferName;
	XdbeSwapBuffers;
	XdbeBeginIdiom;
	XdbeEndIdiom;
	XdbeGetVisualInfo;
	XdbeFreeVisualInfo;
	XdbeGetBackBufferAttributes;

# XScreenSaver extesion moved to libXss:
	XScreenSaverQueryInfo = FUNCTION FILTER libXss.so.1;
	XScreenSaverQueryVersion = FUNCTION FILTER libXss.so.1;
	XScreenSaverQueryExtension = FUNCTION FILTER libXss.so.1;
	XScreenSaverGetRegistered = FUNCTION FILTER libXss.so.1;
	XScreenSaverSetAttributes = FUNCTION FILTER libXss.so.1;
	XScreenSaverSelectInput = FUNCTION FILTER libXss.so.1;
	XScreenSaverRegister = FUNCTION FILTER libXss.so.1;
	XScreenSaverUnsetAttributes = FUNCTION FILTER libXss.so.1;
	XScreenSaverUnregister = FUNCTION FILTER libXss.so.1;
	XScreenSaverAllocInfo = FUNCTION FILTER libXss.so.1;

    local:
	*;
};

SUNWprivate {
    global:

# SolarisIA extension moved to libX11:
	XSolarisIAQueryExtension = FUNCTION FILTER libX11.so.4;
	XSolarisIAQueryVersion = FUNCTION FILTER libX11.so.4;
	XSolarisIASetProcessInfo = FUNCTION FILTER libX11.so.4;
	XSolarisIAGetProcessInfo = FUNCTION FILTER libX11.so.4;

# XPanoramix.c
	XGetXineramaInfo;
	XineramaGetInfo;
	XineramaGetState;	
	XineramaGetCenterHint;

# extutil.c
	XextCreateExtension;
	XextDestroyExtension;
	XextAddDisplay;
	XextFindDisplay;
	XextRemoveDisplay;
	XSetExtensionErrorHandler;
	XMissingExtension;
};