Added "libdir=$(AROS_LIB)" to extraoptions to prevent
[AROS-Contrib.git] / libini / iniObjectNext.c
blobc45d7f88ee89e1b99593c2f6255c61515d29a5d9
1 /**********************************************************************************
2 * .
5 **************************************************
6 * This code was created by Peter Harvey @ CodeByDesign.
7 * Released under LGPL 28.JAN.99
9 * Contributions from...
10 * -----------------------------------------------
11 * PAH = Peter Harvey - pharvey@codebydesign.com
12 * -----------------------------------------------
14 * PAH 19.MAR.99 Now sets hCurProperty to hFirstProperty when found
15 **************************************************/
17 #include "inifile_intern.h"
18 #include "ini.h"
19 #include <aros/libcall.h>
21 /*****************************************************************************
22 NAME */
23 AROS_LH1(int, iniObjectNext,
25 /* SYNOPSIS */
26 AROS_LHA(HINI, hIni, D0),
28 /* LOCATION */
29 struct Library *, inifileBase, 25, inifile)
31 /* FUNCTION
33 INPUTS
35 RESULT
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
53 /* SANITY CHECKS */
54 if ( hIni == NULL )
55 return INI_ERROR;
57 if ( hIni->hCurObject == NULL )
58 return INI_NO_DATA;
60 hIni->hCurObject = hIni->hCurObject->pNext;
61 iniPropertyFirst( hIni );
63 if ( hIni->hCurObject == NULL )
64 return INI_NO_DATA;
66 return INI_SUCCESS;
68 AROS_LIBFUNC_EXIT
69 } /* iniObjectNext */