![]() |
Adobe Photoshop SDK |
|
PIHandleSuite.h
Go to the documentation of this file.
00001 // ADOBE SYSTEMS INCORPORATED 00002 // Copyright 1993 - 2005 Adobe Systems Incorporated 00003 // All Rights Reserved 00004 // 00005 // NOTICE: Adobe permits you to use, modify, and distribute this 00006 // file in accordance with the terms of the Adobe license agreement 00007 // accompanying it. If you have received this file from a source 00008 // other than Adobe, then your use, modification, or distribution 00009 // of it requires the prior written permission of Adobe. 00062 #ifndef __PIHandleSuite__ 00063 #define __PIHandleSuite__ 00064 00065 #if PRAGMA_ONCE 00066 #pragma once 00067 #endif 00068 00069 #include "PIGeneral.h" 00070 00071 #ifdef __cplusplus 00072 extern "C" { 00073 #endif 00074 00075 /******************************************************************************/ 00076 00078 #define kPSHandleSuite "Photoshop Handle Suite for Plug-ins" 00079 00080 //------------------------------------------------------------------------------- 00081 // Handle suite typedefs 00082 //------------------------------------------------------------------------------- 00083 00091 typedef MACPASCAL void (*SetPIHandleLockProc) (Handle h, Boolean lock, Ptr *address, Boolean *oldLock); 00092 00093 //------------------------------------------------------------------------------- 00094 // Handle suite version 1 00095 //------------------------------------------------------------------------------- 00096 00098 #define kPSHandleSuiteVersion1 1 00099 00100 #define kPSHandleSuiteVersion2 2 00101 00106 typedef struct 00107 { 00108 NewPIHandleProc New; 00109 DisposePIHandleProc Dispose; 00110 SetPIHandleLockProc SetLock; 00111 GetPIHandleSizeProc GetSize; 00112 SetPIHandleSizeProc SetSize; 00113 RecoverSpaceProc RecoverSpace; 00115 } PSHandleSuite1; 00116 00122 typedef struct 00123 { 00124 NewPIHandleProc New; 00125 DisposePIHandleProc Dispose; 00126 DisposeRegularHandlePIHandleProc DisposeRegularHandle; 00127 SetPIHandleLockProc SetLock; 00128 GetPIHandleSizeProc GetSize; 00129 SetPIHandleSizeProc SetSize; 00130 RecoverSpaceProc RecoverSpace; 00132 } PSHandleSuite2; 00133 00134 /******************************************************************************/ 00135 00136 #ifdef __cplusplus 00137 } 00138 #endif 00139 00140 00141 #endif // PIHandleSuite 00142 |