OSDN Git Service

(LibGoblin)
[drdeamon64/drdeamon64.git] / libgoblin / drd64_libgoblin_srcfile.h
1 /*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64
2
3                          D r . D e a m o n  6 4
4                         for INTEL64(R), AMD64(R)
5         
6    Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved.
7
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met:
10
11  1. Redistributions of source code must retain the above copyright notice,
12     this list of conditions and the following disclaimer.
13  2. Redistributions in binary form must reproduce the above copyright
14     notice, this list of conditions and the following disclaimer in the
15     documentation and/or other materials provided with the distribution.
16
17 THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND ANY
18 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 DISCLAIMED. IN NO EVENT SHALL Koine Yuusuke(koinec) OR CONTRIBUTORS BE
21 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27 OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/
30
31 /* File Info -----------------------------------------------------------
32 File: drd64_.h
33 Function: Header 
34 Comment: 
35 ----------------------------------------------------------------------*/
36
37 #ifndef DRD64_HEADER_LIBGOBLIN_SRCFILE
38 #define DRD64_HEADER_LIBGOBLIN_SRCFILE
39
40 #ifdef DRD64_SRC_LIBGOBLIN_SRCFILE
41         #define LIBGOBLIN_SRCFILE_EXTERN
42 #else
43         #define LIBGOBLIN_SRCFILE_EXTERN        extern
44 #endif
45
46 #if defined DRD64_SRC_LIBGOBLIN_SRCFILE
47         #define LIBGOBLIN_SRCFILE_INTERNALFUNC
48 #elif defined DRD64_SRC_TEST_LIBGOBLIN_SRCFILE
49         #define LIBGOBLIN_SRCFILE_INTERNALFUNC
50 #endif
51
52 #define LIBGOBLIN_SRCFILE_UNITS         128
53 #define LIBGOBLIN_SRCFILE_MAX_BINFO     128
54
55 #ifdef DRD64_SRC_LIBGOBLIN_SRCFILE
56 #endif
57
58 #define SRCFILE(m,n)    ((LibGoblin_SrcFile *)((m)->srcfile.p_srcfile + (n)))
59
60 LIBGOBLIN_SRCFILE_EXTERN
61         LibGoblin_SrcFile *SrcFile_GetSrcFile( LibGoblin_BinaryFile *p_bfile, int i_srcid );
62 LIBGOBLIN_SRCFILE_EXTERN
63         LibGoblin_SrcFile *SrcFile_AllocSrcFile( LibGoblin_BinaryFile *p_bfile );
64 LIBGOBLIN_SRCFILE_EXTERN
65         LibGoblin_SrcFile *SrcFile_SearchSrcFile(
66                                 LibGoblin_BinaryFile *p_bfile, char *pstr_filename, char *pstr_path );
67 LIBGOBLIN_SRCFILE_EXTERN
68         LibGoblin_SrcFile *SrcFile_DispenseSrcFile(
69                                 LibGoblin_BinaryFile *p_bfile, char *pstr_filename, char *pstr_path );
70 LIBGOBLIN_SRCFILE_EXTERN
71         int SrcFile_FreeSrcFile( LibGoblin_BinaryFile *p_bfile, LibGoblin_SrcFile *p_srcfile );
72 LIBGOBLIN_SRCFILE_EXTERN
73         int SrcFile_Init( LibGoblin_BinaryFile *p_bfile );
74 LIBGOBLIN_SRCFILE_EXTERN
75         int SrcFile_Term( LibGoblin_BinaryFile *p_bfile );
76
77
78 #ifdef LIBGOBLIN_SRCFILE_INTERNALFUNC
79 void SrcFile_ClearSrcFile( LibGoblin_SrcFile *p_libinfo );
80
81 #endif
82
83 #endif  /* DRD64_HEADER_XXX */
84
85 /* EOF of drd64_.h ----------------------------------- */