Adobe.com
Contents Files

SoSharedLibDefs.h

Go to the documentation of this file.
00001 /**************************************************************************
00002 * ADOBE SYSTEMS INCORPORATED
00003 * Copyright 1998 Adobe Systems Incorporated
00004 * All Rights Reserved
00005 *
00006 * NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the
00007 * terms of the Adobe license agreement accompanying it.  If you have received this file from a
00008 * source other than Adobe, then your use, modification, or distribution of it requires the prior
00009 * written permission of Adobe.
00010 **************************************************************************/
00011 
00017 #ifndef _SoSharedLibDefs_h
00018 #define _SoSharedLibDefs_h
00019 
00032 #define kESErrOK                                0
00033 
00034 #define kESErrNoLvalue                  3
00035 
00036 #define kESErrOpenString                4
00037 
00038 #define kESErrBadDigit                  6
00039 
00040 #define kESErrSyntax                    8
00041 
00042 #define kESErrBadArgumentList   20
00043 
00044 #define kESErrNoMemory                  -28
00045 
00046 #define kESErrException                 -29
00047 
00048 #define kESErrBadURI                    31
00049 
00050 #define kESErrBadAction                 32
00051 
00052 #define kESErrInternal                  -33
00053 
00054 #define kESErrNotImplemented    -36
00055 
00056 #define kESErrRange                             41
00057 
00058 #define kESErrEval                              43
00059 
00060 #define kESErrConversion                44
00061 
00062 #define kESErrInvalidObject             45
00063 
00064 #define kESErrTypeMismatch              47
00065 
00066 #define kESErrNoFile                    48
00067 
00068 #define kESErrFileExists                49
00069 
00070 #define kESErrNotOpen                   50
00071 
00072 #define kESErrEOF                               51
00073 
00074 #define kESErrIO                                52
00075 
00076 #define kESErrNoPermission              53
00077 
00078 #define kESErrCannotResolve             57
00079 
00080 #define kESErrIOTimeout                 58
00081 
00082 #define kESErrNoResponse                59
00083 
00092 struct TaggedData_s
00093 {
00094         union
00095         {
00096                 long    intval;         /* integer and boolean values   */
00097                 double  fltval;         /* floating-point values                */
00098                 char*   string;         /* string pointers                              */
00099                 long*   hObject;    /* LiveObject                   */
00100         }                       data;
00101         long            type;           /* the data type tag                    */
00102         long            filler;         /* a filler for 8-byte align    */
00103 } ;
00104 
00105 typedef struct TaggedData_s TaggedData ;
00106 
00114 #define kTypeUndefined  0
00115 
00118 #define kTypeBool               2
00119 
00121 #define kTypeDouble             3
00122 
00128 #define kTypeString             4
00129 
00132 #define kTypeLiveObject 6
00133 
00136 #define kTypeLiveObjectRelease 7
00137 
00139 #define kTypeInteger    123
00140 
00142 #define kTypeUInteger   124
00143 
00149 #define kTypeScript             125
00150 
00151 #ifdef __cplusplus
00152 extern "C" {
00153 #endif
00154 
00162         typedef long (*ESFunction) (TaggedData* argv, long argc, TaggedData* retval);
00163 
00164 /**************** Definitions of standard functions ***********************
00165 
00166 If you return a string, implement the following function so ExtendScript
00167 can call this function to release the memory associated with the string.
00168 
00169 extern void ESFreeMem (void* p);
00170 
00171 If you implement the following function, ExtendScript makes the result of
00172 the function available as the value of the read-only property "version".
00173 
00174 extern long ESGetVersion (void);
00175 
00176 Initialize the library and return function signatures. If you do not return
00177 function signatures, return an empty string or NULL. This string is not released
00178 by ExtendScript, since it assumes that it it static within the DLL. The arguments
00179 are the remaining arguments of the ExtendScript ExternalObject constructor.
00180 
00181 extern char* ESInitialize (TaggedData* argv, long argc);
00182 
00183 Terminate the library.
00184 
00185 extern void ESTerminate (void);
00186 */
00187 
00188 typedef   signed long    ESerror_t;
00189 
00190 #ifdef __cplusplus
00191 }
00192 #endif
00193 
00194 
00195 
00196 #endif
00197 
Contents Files
Adobe Solutions Network
 
Copyright © 2010 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks