From 631d88a4c30f166d26d02462246c352b60aed786 Mon Sep 17 00:00:00 2001 From: shinyquagsire23 Date: Sat, 16 Jul 2016 17:27:41 -0700 Subject: [PATCH] Remove imports which don't exist in elf2rpl's target coreinit.rpl version --- include/coreinit/expandedheap.h | 12 ------------ include/coreinit/frameheap.h | 11 ----------- include/coreinit/messagequeue.h | 5 ----- rpl/libcoreinit/exports.h | 9 --------- 4 files changed, 37 deletions(-) diff --git a/include/coreinit/expandedheap.h b/include/coreinit/expandedheap.h index b6293eb..90e7222 100644 --- a/include/coreinit/expandedheap.h +++ b/include/coreinit/expandedheap.h @@ -30,21 +30,12 @@ typedef enum MEMExpHeapDirection MEM_EXP_HEAP_DIR_FROM_BOTTOM = 1, } MEMExpHeapDirection; -MEMExpandedHeap * -MEMCreateExpHeap(MEMExpandedHeap *heap, uint32_t size); - MEMExpandedHeap * MEMCreateExpHeapEx(MEMExpandedHeap *heap, uint32_t size, uint16_t flags); MEMExpandedHeap * MEMDestroyExpHeap(MEMExpandedHeap *heap); -void -MEMiDumpExpHeap(MEMExpandedHeap *heap); - -void * -MEMAllocFromExpHeap(MEMExpandedHeap *heap, uint32_t size); - void * MEMAllocFromExpHeapEx(MEMExpandedHeap *heap, uint32_t size, int alignment); @@ -66,9 +57,6 @@ MEMResizeForMBlockExpHeap(MEMExpandedHeap *heap, uint8_t *address, uint32_t size uint32_t MEMGetTotalFreeSizeForExpHeap(MEMExpandedHeap *heap); -uint32_t -MEMGetAllocatableSizeForExpHeap(MEMExpandedHeap *heap); - uint32_t MEMGetAllocatableSizeForExpHeapEx(MEMExpandedHeap *heap, int alignment); diff --git a/include/coreinit/frameheap.h b/include/coreinit/frameheap.h index cb5b1c8..baef5e4 100644 --- a/include/coreinit/frameheap.h +++ b/include/coreinit/frameheap.h @@ -24,10 +24,6 @@ struct MEMFrameHeap }; UNKNOWN_SIZE(MEMFrameHeap); -MEMFrameHeap * -MEMCreateFrmHeap(MEMFrameHeap *heap, - uint32_t size); - MEMFrameHeap * MEMCreateFrmHeapEx(MEMFrameHeap *heap, uint32_t size, @@ -36,10 +32,6 @@ MEMCreateFrmHeapEx(MEMFrameHeap *heap, void * MEMDestroyFrmHeap(MEMFrameHeap *heap); -void * -MEMAllocFromFrmHeap(MEMFrameHeap *heap, - uint32_t size); - void * MEMAllocFromFrmHeapEx(MEMFrameHeap *heap, uint32_t size, @@ -65,9 +57,6 @@ MEMResizeForMBlockFrmHeap(MEMFrameHeap *heap, uint32_t addr, uint32_t size); -uint32_t -MEMGetAllocatableSizeForFrmHeap(MEMFrameHeap *heap); - uint32_t MEMGetAllocatableSizeForFrmHeapEx(MEMFrameHeap *heap, int alignment); diff --git a/include/coreinit/messagequeue.h b/include/coreinit/messagequeue.h index 458095c..e270bbb 100644 --- a/include/coreinit/messagequeue.h +++ b/include/coreinit/messagequeue.h @@ -69,11 +69,6 @@ OSSendMessage(OSMessageQueue *queue, OSMessage *message, OSMessageFlags flags); -BOOL -OSJamMessage(OSMessageQueue *queue, - OSMessage *message, - OSMessageFlags flags); - BOOL OSReceiveMessage(OSMessageQueue *queue, OSMessage *message, diff --git a/rpl/libcoreinit/exports.h b/rpl/libcoreinit/exports.h index eb883e4..7507556 100644 --- a/rpl/libcoreinit/exports.h +++ b/rpl/libcoreinit/exports.h @@ -88,11 +88,8 @@ EXPORT(exit); EXPORT(_Exit); // coreinit/expandedheap.h -EXPORT(MEMCreateExpHeap); EXPORT(MEMCreateExpHeapEx); EXPORT(MEMDestroyExpHeap); -EXPORT(MEMiDumpExpHeap); -EXPORT(MEMAllocFromExpHeap); EXPORT(MEMAllocFromExpHeapEx); EXPORT(MEMFreeToExpHeap); EXPORT(MEMSetAllocModeForExpHeap); @@ -100,7 +97,6 @@ EXPORT(MEMGetAllocModeForExpHeap); EXPORT(MEMAdjustExpHeap); EXPORT(MEMResizeForMBlockExpHeap); EXPORT(MEMGetTotalFreeSizeForExpHeap); -EXPORT(MEMGetAllocatableSizeForExpHeap); EXPORT(MEMGetAllocatableSizeForExpHeapEx); EXPORT(MEMSetGroupIDForExpHeap); EXPORT(MEMGetGroupIDForExpHeap); @@ -157,17 +153,14 @@ EXPORT(FSGetVolumeState); EXPORT(FSGetLastErrorCodeForViewer); // coreinit/frameheap.h -EXPORT(MEMCreateFrmHeap); EXPORT(MEMCreateFrmHeapEx); EXPORT(MEMDestroyFrmHeap); -EXPORT(MEMAllocFromFrmHeap); EXPORT(MEMAllocFromFrmHeapEx); EXPORT(MEMFreeToFrmHeap); EXPORT(MEMRecordStateForFrmHeap); EXPORT(MEMFreeByStateToFrmHeap); EXPORT(MEMAdjustFrmHeap); EXPORT(MEMResizeForMBlockFrmHeap); -EXPORT(MEMGetAllocatableSizeForFrmHeap); EXPORT(MEMGetAllocatableSizeForFrmHeapEx); // coreinit/memlist.h @@ -188,7 +181,6 @@ EXPORT(OSBlockSet); EXPORT(OSInitMessageQueue); EXPORT(OSInitMessageQueueEx); EXPORT(OSSendMessage); -EXPORT(OSJamMessage); EXPORT(OSReceiveMessage); EXPORT(OSPeekMessage); EXPORT(OSGetSystemMessageQueue); @@ -303,6 +295,5 @@ EXPORT(MEMCreateUnitHeapEx); EXPORT(MEMDestroyUnitHeap); EXPORT(MEMAllocFromUnitHeap); EXPORT(MEMFreeToUnitHeap); -EXPORT(MEMiDumpUnitHeap); EXPORT(MEMCountFreeBlockForUnitHeap); EXPORT(MEMCalcHeapSizeForUnitHeap);