00001 #ifndef __MK_DSPStructMisc_H___
00002 #define __MK_DSPStructMisc_H___
00003
00004
00005
00006
00007
00008 #include "MKDSPDefines.h"
00009
00010
00011
00012
00013 MKDSP_API void DSPDataRecordInit(DSPDataRecord *dr);
00014
00015
00016 MKDSP_API void DSPSectionInit(DSPSection *sec);
00017
00018
00019
00020
00021
00022 MKDSP_API void DSPLoadSpecInit(DSPLoadSpec *dsp);
00023
00024
00025
00026
00027
00028
00029
00030 MKDSP_API void DSPSymbolPrint(DSPSymbol sym);
00031 MKDSP_API void DSPDataRecordPrint(DSPDataRecord *dr);
00032 MKDSP_API void DSPSectionPrint(DSPSection *section);
00033 MKDSP_API void DSPLoadSpecPrint(DSPLoadSpec *dsp);
00034
00035
00036
00037 MKDSP_API int DSPDataRecordWrite(DSPDataRecord *dr, FILE *fp);
00038 MKDSP_API int DSPSymbolWrite(DSPSymbol sym, FILE *fp);
00039 MKDSP_API int DSPFixupWrite(DSPFixup fxp, FILE *fp);
00040 MKDSP_API int DSPSectionWrite(DSPSection *sec, FILE *fp);
00041 MKDSP_API int DSPLoadSpecWrite(DSPLoadSpec *dsp, FILE *fp);
00042
00043 MKDSP_API int DSPLoadSpecWriteFile(
00044 DSPLoadSpec *dspptr,
00045 char *dspfn);
00046
00047
00048
00049
00050
00051
00052
00053
00054 MKDSP_API int DSPSymbolRead(DSPSymbol *symp, FILE *fp);
00055 MKDSP_API int DSPFixupRead(DSPFixup *fxpp, FILE *fp);
00056 MKDSP_API int DSPSectionRead(DSPSection **secpp, FILE *fp);
00057 MKDSP_API int DSPLoadSpecRead(DSPLoadSpec **dpp, FILE *fp);
00058
00059 MKDSP_API int DSPDataRecordRead(
00060 DSPDataRecord **drpp,
00061 FILE *fp,
00062 DSPSection *sp);
00063
00064
00065 MKDSP_API int DSPLoadSpecReadFile(
00066 DSPLoadSpec **dspptr,
00067 char *dspfn);
00068
00069
00070
00071
00072
00073 MKDSP_API int DSPDataRecordFree(DSPDataRecord *dr);
00074
00075
00076
00077
00078 MKDSP_API int DSPSymbolFree(DSPSymbol *sym);
00079 MKDSP_API int DSPFixupFree(DSPFixup *fxp);
00080 MKDSP_API int DSPSectionFree(DSPSection *sec);
00081 MKDSP_API int DSPLoadSpecFree(DSPLoadSpec *dsp);
00082
00083
00084
00085 MKDSP_API DSPSection *DSPGetUserSection(DSPLoadSpec *dspStruct);
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102 MKDSP_API DSPAddress DSPGetFirstAddress(DSPLoadSpec *dspStruct,
00103 DSPLocationCounter locationCounter);
00104
00105 MKDSP_API DSPAddress DSPGetLastAddress(DSPLoadSpec *dspStruct,
00106 DSPLocationCounter locationCounter);
00107
00108 MKDSP_API int DSPDataRecordInsert(DSPDataRecord *dr,
00109 DSPDataRecord **head,
00110 DSPDataRecord **tail);
00111
00112
00113
00114
00115
00116 MKDSP_API int DSPDataRecordMerge(DSPDataRecord *dr);
00117
00118
00119
00120
00121
00122 MKDSP_API int DSPCopyLoadSpec(DSPLoadSpec **dspPTo,DSPLoadSpec *dspFrom);
00123
00124 #endif