home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / tollmanager3.lha / toolmanager3 / ToolManagerSrc.lha / ToolManager / Source / Converter / converter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-22  |  2.9 KB  |  98 lines

  1. /*
  2.  * converter.h  V3.0
  3.  *
  4.  * ToolManager preferences file converter include file
  5.  *
  6.  * Copyright (C) 1990-97 Stefan Becker
  7.  *
  8.  * This source code is for educational purposes only. You may study it
  9.  * and copy ideas or algorithms from it for your own projects. It is
  10.  * not allowed to use any of the source codes (in full or in parts)
  11.  * in other programs. Especially it is not allowed to create variants
  12.  * of ToolManager or ToolManager-like programs from this source code.
  13.  *
  14.  */
  15.  
  16. /* OS include files */
  17. #include <exec/memory.h>
  18. #include <graphics/text.h>
  19. #include <prefs/prefhdr.h>
  20.  
  21. /* OS function prototypes */
  22. #include <clib/alib_protos.h>
  23. #include <clib/dos_protos.h>
  24. #include <clib/exec_protos.h>
  25. #include <clib/iffparse_protos.h>
  26.  
  27. /* OS function inline calls */
  28. #include <pragmas/dos_pragmas.h>
  29. #include <pragmas/exec_pragmas.h>
  30. #include <pragmas/iffparse_pragmas.h>
  31.  
  32. /* ANSI C include files */
  33. #include <stdlib.h>
  34. #include <stdio.h>
  35. #include <string.h>
  36.  
  37. /* Debugging */
  38. #ifdef DEBUG
  39. /* Global data */
  40. #define DEBUGFLAGENTRIES 1
  41.  
  42. /* Macros */
  43. #define MAIN_LOG(x)   _LOG(0,  0, (x))
  44. #define MEMORY_LOG(x) _LOG(0,  1, (x))
  45. #define SCAN_LOG(x)   _LOG(0,  2, (x))
  46. #define EXEC_LOG(x)   _LOG(0,  3, (x))
  47. #define IMAGE_LOG(x)  _LOG(0,  4, (x))
  48. #define SOUND_LOG(x)  _LOG(0,  5, (x))
  49. #define MENU_LOG(x)   _LOG(0,  6, (x))
  50. #define ICON_LOG(x)   _LOG(0,  7, (x))
  51. #define DOCK_LOG(x)   _LOG(0,  8, (x))
  52. #define ACCESS_LOG(x) _LOG(0,  9, (x))
  53. #define MISC_LOG(x)   _LOG(0, 10, (x))
  54. #else
  55. #define MAIN_LOG(x)
  56. #define MEMORY_LOG(x)
  57. #define SCAN_LOG(x)
  58. #define EXEC_LOG(x)
  59. #define IMAGE_LOG(x)
  60. #define SOUND_LOG(x)
  61. #define MENU_LOG(x)
  62. #define ICON_LOG(x)
  63. #define DOCK_LOG(x)
  64. #define ACCESS_LOG(x)
  65. #define MISC_LOG(x)
  66. #endif
  67.  
  68. /* Globale ToolManager definitions */
  69. #include "/global.h"
  70.  
  71. /* Global data */
  72. extern struct Library *DOSBase;
  73. extern struct Library *IFFParseBase;
  74. extern struct Library *SysBase;
  75.  
  76. /* Function prototypes */
  77. BOOL   ScanOldConfig(struct IFFHandle *, struct IFFHandle *);
  78. void   InitExecIDList(void);
  79. void   FreeExecIDList(void);
  80. ULONG  FindExecID(const char *);
  81. BOOL   ConvertExecConfig(void *chunk, struct IFFHandle *, ULONG);
  82. void   InitImageIDList(void);
  83. void   FreeImageIDList(void);
  84. ULONG  FindImageID(const char *);
  85. BOOL   ConvertImageConfig(void *chunk, struct IFFHandle *, ULONG);
  86. void   InitSoundIDList(void);
  87. void   FreeSoundIDList(void);
  88. ULONG  FindSoundID(const char *);
  89. BOOL   ConvertSoundConfig(void *chunk, struct IFFHandle *, ULONG);
  90. BOOL   ConvertMenuConfig(void *chunk, struct IFFHandle *, ULONG);
  91. BOOL   ConvertIconConfig(void *chunk, struct IFFHandle *, ULONG);
  92. BOOL   ConvertDockConfig(void *chunk, struct IFFHandle *, ULONG);
  93. BOOL   ConvertAccessConfig(void *chunk, struct IFFHandle *, ULONG);
  94. char  *ConvertConfigString(char *, struct IFFHandle *, ULONG);
  95. BOOL   AddIDToList(struct MinList *, const char *, ULONG);
  96. ULONG  FindIDInList(struct MinList *, const char *);
  97. void   FreeIDList(struct MinList *);
  98.