|
Adobe Photoshop SDK |
|
PIBufferSuite.hGo 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. 00010 //------------------------------------------------------------------- 00054 #ifndef __PIBufferSuite__ 00055 #define __PIBufferSuite__ 00056 00057 #if PRAGMA_ONCE 00058 #pragma once 00059 #endif 00060 00061 #ifdef __cplusplus 00062 extern "C" { 00063 #endif 00064 00065 /******************************************************************************/ 00066 00068 #define kPSBufferSuite "Photoshop Buffer Suite for Plug-ins" 00069 00070 //------------------------------------------------------------------------- 00071 // Buffer suite typedefs 00072 //------------------------------------------------------------------------- 00073 00088 typedef SPAPI Ptr (*BufferNewProc) (unsigned32 *pRequestedSize, /* IN/OUT: Actual size returned here. */ 00089 unsigned32 minimumSize); 00090 00091 00097 typedef SPAPI void (*BufferDisposeProc) (Ptr *ppBuffer); 00098 00105 typedef SPAPI unsigned32 (*BufferGetSizeProc) (Ptr pBuffer); 00106 00107 00112 typedef SPAPI unsigned32 (*BufferGetSpaceProc) (void); 00113 00114 00115 //------------------------------------------------------------------------- 00116 // Buffer suite version 1 00117 //------------------------------------------------------------------------- 00118 00120 #define kPSBufferSuiteVersion1 1 00121 00123 typedef struct 00124 { 00125 BufferNewProc New; 00126 BufferDisposeProc Dispose; 00127 BufferGetSizeProc GetSize; 00128 BufferGetSpaceProc GetSpace; 00130 } PSBufferSuite1; 00131 00132 00133 /******************************************************************************/ 00134 00135 #ifdef __cplusplus 00136 } 00137 #endif 00138 00139 00140 #endif // PIBufferSuite 00141 |