PIErrorSuite.h
Go 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 #ifdef __cplusplus
00064 extern "C" {
00065 #endif
00066 
00067 //-------------------------------------------------------------------------------
00068 //  Error suite version 1.
00069 //-------------------------------------------------------------------------------
00070 
00072 #define kPSErrorSuite           "Photoshop Error Suite for Plug-ins"
00073 
00074 #define kPSErrorSuiteVersion1   1
00075 
00076 //-------------------------------------------------------------------------------
00077 //  Error suite typedefs.
00078 //-------------------------------------------------------------------------------
00079 
00085 typedef SPAPI SPErr (*SetErrorFromPStringProc) (/* IN */ const Str255 errorString);
00086 
00089 
00094 typedef SPAPI SPErr (*SetErrorFromCStringProc) (/* IN */ const char* errorString);
00095 
00102 #ifndef ASZString_defined
00103 #define ASZString_defined
00104 struct ASZByteRun;
00105 typedef struct ASZByteRun *ASZString;
00106 #endif
00107 
00108 typedef SPAPI SPErr (*SetErrorFromZStringProc) (/* IN */ const ASZString zString);
00109 
00111 typedef struct PSErrorSuite1
00112     {
00113     SetErrorFromPStringProc SetErrorFromPString;  
00114     SetErrorFromCStringProc SetErrorFromCString;  
00115     SetErrorFromZStringProc SetErrorFromZString;  
00116     } PSErrorSuite1;
00117     
00118 //-------------------------------------------------------------------------------
00119 #ifdef __cplusplus
00120 }
00121 #endif
00122 
00124 #endif // PIErrorSuite.h