1 /*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64
4 for INTEL64(R), AMD64(R)
6 Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved.
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met:
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.
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.
29 DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/
31 /* File Info -----------------------------------------------------------
35 ----------------------------------------------------------------------*/
37 #ifndef DRD64_HEADER_LIBBROWNIE
38 #define DRD64_HEADER_LIBBROWNIE
40 #include"./drd64_types.h"
41 #include"./drd64_defines.h"
42 #include"./drd64_error.h"
44 #ifdef DRD64_HEADER_LIBBROWNIE_MAIN
45 #define LIBBROWNIE_FUNC
47 #define LIBBROWNIE_FUNC extern
50 /* drd64_libbrownie_error.c Functions ========================*/
52 int LibBrownie_Error_GetReferenceCount( void );
54 int LibBrownie_Error_DebugErrorInfoPrint( int i_id );
56 int LibBrownie_Error_DebugAllInfoPrint( void );
58 int LibBrownie_Error_SetErrorInfo(
59 DWord dw_errcode, DWord dw_errlocation, int i_syserrno,
60 QWord qw_value1, QWord qw_value2, int i_srcline );
62 Drd64_ErrorInfo *LibBrownie_Error_GetErrorInfo( int i_history_id );
64 int LibBrownie_Error_InitErrorSystem( void );
66 void LibBrownie_Error_TermErrorSystem( void );
69 /* drd64_libbrownie_inetaddr.c Functions =====================*/
72 Drd64_LibBrownie_INetAddr_CmpInAddr(
73 struct in_addr *p_dest,
74 struct in_addr *p_src );
78 Drd64_LibBrownie_INetAddr_CopyInAddr(
79 struct in_addr *p_dest,
80 struct in_addr *p_src );
84 Drd64_LibBrownie_INetAddr_SetInAddr_fromFQDN(
85 struct in_addr *p_addr,
86 char *pstr_hostname );
90 Drd64_LibBrownie_INetAddr_SetInAddr_LocalHost(
91 struct in_addr *p_addr );
94 #endif /* DRD64_HEADER_XXX */
96 /* EOF of drd64_.h ----------------------------------- */