aqhome: minor modifications.
This commit is contained in:
@@ -10,8 +10,6 @@
|
|||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "./path.h"
|
#include "./path.h"
|
||||||
|
|
||||||
#include <gwenhywfar/stringlist.h>
|
#include <gwenhywfar/stringlist.h>
|
||||||
@@ -24,12 +22,21 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void *_handleElement(const char *element, void *data, uint32_t flags, AQH_PATHHANDLERFN fn);
|
/* ------------------------------------------------------------------------------------------------
|
||||||
|
* forward declarations
|
||||||
|
* ------------------------------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
static void *_handleElement(const char *element, void *data, uint32_t flags, AQH_PATH_HANDLERFN fn);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------------------------------
|
||||||
|
* implementations
|
||||||
|
* ------------------------------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
void *AQH_Path_Handle(const char *path, void *data, uint32_t flags, AQH_PATHHANDLERFN fn)
|
void *AQH_Path_Handle(const char *path, void *data, uint32_t flags, AQH_PATH_HANDLERFN fn)
|
||||||
{
|
{
|
||||||
if (path && *path) {
|
if (path && *path) {
|
||||||
GWEN_STRINGLIST *elementList;
|
GWEN_STRINGLIST *elementList;
|
||||||
@@ -85,7 +92,7 @@ void *AQH_Path_Handle(const char *path, void *data, uint32_t flags, AQH_PATHHAND
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void *_handleElement(const char *element, void *data, uint32_t flags, AQH_PATHHANDLERFN fn)
|
void *_handleElement(const char *element, void *data, uint32_t flags, AQH_PATH_HANDLERFN fn)
|
||||||
{
|
{
|
||||||
if (flags & AQH_PATH_FLAGS_PARSEIDX) {
|
if (flags & AQH_PATH_FLAGS_PARSEIDX) {
|
||||||
const char *ptrOpenBracket;
|
const char *ptrOpenBracket;
|
||||||
|
|||||||
@@ -29,12 +29,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef void *(*AQH_PATHHANDLERFN)(const char *entry, void *data, int idx, uint32_t flags);
|
typedef void *(*AQH_PATH_HANDLERFN)(const char *entry, void *data, int idx, uint32_t flags);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AQHOME_API void *AQH_Path_Handle(const char *path, void *data, uint32_t flags, AQH_PATHHANDLERFN fn);
|
AQHOME_API void *AQH_Path_Handle(const char *path, void *data, uint32_t flags, AQH_PATH_HANDLERFN fn);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user