Removed incomplete file search tool. It was in "contrib"
[AROS-Contrib.git] / libini / iniObjectFirst.c
blob3f9fed9971374a548fb3fa3718ed37880948cfe8
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, iniObjectFirst,
25 /* SYNOPSIS */
26 AROS_LHA(HINI, hIni, D0),
28 /* LOCATION */
29 struct Library *, inifileBase, 22, 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 hIni->hCurObject = hIni->hFirstObject;
58 iniPropertyFirst( hIni );
60 if ( hIni->hCurObject == NULL )
61 return INI_NO_DATA;
63 return INI_SUCCESS;
65 AROS_LIBFUNC_EXIT
66 } /* iniObjectFirst */