1 | /********************************************************************************** |
2 | * . |
3 | * |
4 | * |
5 | ************************************************** |
6 | * This code was created by Peter Harvey @ CodeByDesign. |
7 | * Released under LGPL 28.JAN.99 |
8 | * |
9 | * Contributions from... |
10 | * ----------------------------------------------- |
11 | * Peter Harvey - pharvey@codebydesign.com |
12 | **************************************************/ |
13 | |
14 | #include <config.h> |
15 | #include "ini.h" |
16 | |
17 | int iniPropertyNext( HINI hIni ) |
18 | { |
19 | |
20 | /* SANITY CHECKS */ |
21 | if ( hIni == NULL ) |
22 | return INI_ERROR; |
23 | |
24 | if ( hIni->hCurObject == NULL ) |
25 | return INI_NO_DATA; |
26 | |
27 | if ( hIni->hCurProperty == NULL ) |
28 | return INI_NO_DATA; |
29 | |
30 | hIni->hCurProperty = hIni->hCurProperty->pNext; |
31 | |
32 | if ( hIni->hCurProperty == NULL ) |
33 | return INI_NO_DATA; |
34 | |
35 | return INI_SUCCESS; |
36 | } |
37 | |
38 | |
39 | |