|
Adobe Photoshop SDK |
|
PIErrorSuite.hGo to the documentation of this file.00001 // ADOBE SYSTEMS INCORPORATED 00002 // (c) 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 //------------------------------------------------------------------- 00011 //------------------------------------------------------------------------------- 00023 //------------------------------------------------------------------------------- 00024 00052 #ifndef __PIErrorSuite_h__ // Already defined? 00053 #define __PIErrorSuite_h__ 00054 00055 //------------------------------------------------------------------------------- 00056 // Includes and alignment. 00057 //------------------------------------------------------------------------------- 00058 00059 #ifndef __ASPREINCLUDE__ 00060 #include "ASPreInclude.h" 00061 #endif 00062 00063 #include "ASZStringSuite.h" 00064 00065 #ifdef __cplusplus 00066 extern "C" { 00067 #endif 00068 00069 //------------------------------------------------------------------------------- 00070 // Error suite version 1. 00071 //------------------------------------------------------------------------------- 00072 00074 #define kPSErrorSuite "Photoshop Error Suite for Plug-ins" 00076 #define kPSErrorSuiteVersion1 1 00077 00078 //------------------------------------------------------------------------------- 00079 // Error suite typedefs. 00080 //------------------------------------------------------------------------------- 00081 00087 typedef SPAPI SPErr (*SetErrorFromPStringProc) (/* IN */ const Str255 errorString); 00088 00091 00096 typedef SPAPI SPErr (*SetErrorFromCStringProc) (/* IN */ const char* errorString); 00097 00103 typedef SPAPI SPErr (*SetErrorFromZStringProc) (/* IN */ const ASZString zString); 00104 00106 typedef struct PSErrorSuite1 00107 { 00108 SetErrorFromPStringProc SetErrorFromPString; 00109 SetErrorFromCStringProc SetErrorFromCString; 00110 SetErrorFromZStringProc SetErrorFromZString; 00111 } PSErrorSuite1; 00112 00113 //------------------------------------------------------------------------------- 00114 #ifdef __cplusplus 00115 } 00116 #endif 00117 00119 #endif // PIErrorSuite.h |