summaryrefslogtreecommitdiff
path: root/includes/plugin_internal.h
blob: fdf2bd04c813d2e07ec1ac6d041bef5db4d17346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#pragma once
#include "plugin.h"

#ifdef __MWERKS__
#pragma options align=mac68k
#endif
struct CWPluginPrivateContext {
    CWPluginPrivateContext(SInt32 thePluginType, SInt32 totalSize = 0);
    ~CWPluginPrivateContext();

    SInt32 request;
    SInt32 apiVersion;
    void *shellContext;
    void *pluginStorage;
    CWFileSpec projectFile;
    CWFileSpec outputFileDirectory;
    SInt32 shellSignature;
    SInt32 pluginType;
    SInt32 numFiles;
    SInt32 numOverlayGroups;
    OSErr callbackOSError;
    OSErr pluginOSError;
    CWIDEInfo *shellInfo;
    IDEAccessPathList *accessPathList;
    SInt32 dontEatEvents;
    CWFileSpec *targetDataDirectorySpec;
    SInt32 reserved[17];
    CW_BasePluginCallbacks *callbacks;
};

struct CWCompilerLinkerContext : CWPluginPrivateContext {
    CWCompilerLinkerContext();
    ~CWCompilerLinkerContext();

    SInt32 whichfile;
    CWFileSpec sourcefile;
    const char *sourcetext;
    SInt32 sourcetextsize;
    Boolean precompile;
    Boolean autoprecompile;
    Boolean preprocess;
    Boolean cachingPCH;
    Boolean debuginfo;
    SInt16 fileID;
    CWBrowseOptions browseoptions;
    Boolean recordbrowseinfo;
    void *reserved;
    SInt32 sequenceID;
    CWCompilerLinkerContext *parentPB;
    void *targetStorage;
    SInt32 reservedcompiler[7];
    CWMemHandle texthandle;
    CWTargetInfoV7 targetinfo_V7;
    CWTargetInfo *targetinfo;
    const char *commandLineArgs;
    CWFileSpec *workingDirectorySpec;
    SInt32 numEnvironmentVariables;
    CWEnvVarInfo *environmentVariables;
    SInt32 workingDirectoryError;
    SInt32 reservedlinker[2];
    CWCompilerLinkerCallbacks *callbacks;
};

struct CWParserContext : CWPluginPrivateContext {
    CWParserContext();
    ~CWParserContext();

    CWCommandLineArgs *args;
    CWDataType cpu;
    CWDataType os;
    const char *build_date;
    const char *build_time;
    const ToolVersionInfo *build_tool;
    int numPlugins;
    CLPluginInfo *plugins;
    int numPanels;
    const char **panelNames;
    CWCommandLineArgs *plugin_args;
    CWCommandLineArgs *panel_args;
    CWParserCallbacks *callbacks;
};

struct Plugin;
typedef struct shellContextType {
    Plugin *plugin;
    Boolean userAccessPathsChanged;
    Boolean systemAccessPathsChanged;
} shellContextType;
#ifdef __MWERKS__
#pragma options align=reset
#endif