1 /*---------------------------------------------------------------------*
2 Project:  tc library
3 File:     TCSrcImageList.h
4 
5 Copyright 1998-2001 Nintendo.  All rights reserved.
6 
7 These coded instructions, statements and computer programs contain
8 proprietary information of Nintendo of America Inc. and/or Nintendo
9 Company Ltd., and are protected by Federal copyright law.  They may
10 not be disclosed to third parties or copied or duplicated in any form,
11 in whole or in part, without the prior written consent of Nintendo.
12 
13 Change History:
14 
15    $Log: TCSrcImageList.h,v $
16    Revision 1.1  2006/02/17 09:02:16  mitu
17    1st version
18 
19 
20     2     4/11/01 3:04p John
21     Updated header copyrights and pathname.
22 
23     1     12/03/99 3:44p Ryan
24 
25     8     9/16/99 8:48p Mikepc
26 
27     7     9/02/99 11:10a Mikepc
28     re-organization of prototypes between files
29 
30     6     8/26/99 4:56p Mikepc
31     added namespace protection to remove potential name collisions with
32     tool code.  Exceptions are CreateTplFile and QuickConvert.  These are
33     extern "C" linked.
34 
35     5     8/26/99 11:37a Mikepc
36 
37     4     8/26/99 11:01a Mikepc
38     tplConv rewrite for memory usage efficiency, batch file processing
39     ability.
40 
41 
42   $NoKeywords: $
43 
44 -----------------------------------------------------------------------*/
45 
46 #ifndef __TCSRCIMAGELIST_H__
47 #define __TCSRCIMAGELIST_H__
48 
49 /********************************/
50 #include <dolphin/types.h>
51 
52 #include "TCScriptFile.h"
53 
54 /********************************/
55 typedef struct TCSrcImage
56 {
57 
58  	char fileName[NAME_SIZE];    // source file name
59 
60  	u32   index;                 // source file's index (1 to n) from script file
61 
62 	struct TCSrcImage* prev;
63 	struct TCSrcImage* next;
64 
65 }TCSrcImage, *TCSrcImagePtr;
66 
67 /********************************/
68 extern TCSrcImage* SiHead;
69 
70 /*>*******************************(*)*******************************<*/
71 TCSrcImage* TCNewSrcImage			( void );
72 void TCSortSrcImageByIndex			( void );
73 TCSrcImage* TCFindSrcImageByIndex	( u32 index );
74 
75 void TCSetSrcImageFromFile			( TCSrcImage* newSi, char* fileName,
76 									  u32 index  );
77 
78 /*>*******************************(*)*******************************<*/
79 
80 #endif  // __SRC_IMAGE_LIST_H__
81