home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Headers / mach-o / swap.h < prev   
Text File  |  1997-01-15  |  2KB  |  78 lines

  1. #import <architecture/byte_order.h>
  2. #import <mach-o/fat.h>
  3. #import <mach-o/loader.h>
  4. #import <mach-o/nlist.h>
  5. #import <mach-o/reloc.h>
  6. #import <bsd/ranlib.h>
  7.  
  8. extern void swap_fat_header(
  9.     struct fat_header *fat_header,
  10.     enum NXByteOrder target_byte_order);
  11.  
  12. extern void swap_fat_arch(
  13.     struct fat_arch *fat_archs,
  14.     unsigned long nfat_arch,
  15.     enum NXByteOrder target_byte_order);
  16.  
  17. extern void swap_mach_header(
  18.     struct mach_header *mh,
  19.     enum NXByteOrder target_byte_order);
  20.  
  21. extern void swap_load_command(
  22.     struct load_command *lc,
  23.     enum NXByteOrder target_byte_order);
  24.  
  25. extern void swap_segment_command(
  26.     struct segment_command *sg,
  27.     enum NXByteOrder target_byte_order);
  28.  
  29. extern void swap_section(
  30.     struct section *s,
  31.     unsigned long nsects,
  32.     enum NXByteOrder target_byte_order);
  33.  
  34. extern void swap_symtab_command(
  35.     struct symtab_command *st,
  36.     enum NXByteOrder target_byte_order);
  37.  
  38. #if 0
  39. extern void swap_dysymtab_command(
  40.     struct dysymtab_command *dyst,
  41.     enum NXByteOrder target_byte_sex);
  42. #endif  /* temp backoff the fix */
  43.  
  44. extern void swap_symseg_command(
  45.     struct symseg_command *ss,
  46.     enum NXByteOrder target_byte_order);
  47.  
  48. extern void swap_fvmlib_command(
  49.     struct fvmlib_command *fl,
  50.     enum NXByteOrder target_byte_order);
  51.  
  52. extern void swap_fvmfile_command(
  53.     struct fvmfile_command *ff,
  54.     enum NXByteOrder target_byte_order);
  55.  
  56. extern void swap_thread_command(
  57.     struct thread_command *ut,
  58.     enum NXByteOrder target_byte_order);
  59.  
  60. extern void swap_ident_command(
  61.     struct ident_command *ident,
  62.     enum NXByteOrder target_byte_order);
  63.  
  64. extern void swap_nlist(
  65.     struct nlist *symbols,
  66.     unsigned long nsymbols,
  67.     enum NXByteOrder target_byte_order);
  68.  
  69. extern void swap_ranlib(
  70.     struct ranlib *ranlibs,
  71.     unsigned long nranlibs,
  72.     enum NXByteOrder target_byte_order);
  73.  
  74. extern void swap_relocation_info(
  75.     struct relocation_info *relocs,
  76.     unsigned long nrelocs,
  77.     enum NXByteOrder target_byte_order);
  78.