diff options
-rw-r--r-- | interchange.c | 5 | ||||
-rw-r--r-- | interchange.h | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/interchange.c b/interchange.c index d2a3217..e96c99b 100644 --- a/interchange.c +++ b/interchange.c @@ -43,9 +43,10 @@ void interchange_init(const char *url, const char *dir, const char *cookie, #endif } -void interchange_page(const char *path, void (*handler)(interchange_response *)) +void interchange_flypage(const char *path, + void (*parser)(interchange_response *)) { - request(handler, NULL, NULL, "%s", path); + request(parser, NULL, NULL, "%s", path); } void interchange_catalog(const char *prod_group, void (*handler)(interchange_response *), void (*callback)(struct interchange_catalog *)) diff --git a/interchange.h b/interchange.h index c14c508..134865d 100644 --- a/interchange.h +++ b/interchange.h @@ -48,12 +48,12 @@ void interchange_init(const char *sampleurl, const char *image_dir, const char *cookie, const char *certificate); /*! - * \brief For fetching data from a specific path. + * \brief Generic function for fetching data using a relative path. * \param path The path. - * \param handler Function for handling the response data. + * \param parser Function for parsing the formatted response. */ -void interchange_page(const char *path, - void (*handler)(interchange_response *)); +void interchange_flypage(const char *path, + void (*parser)(interchange_response *)); /*! * \brief For fetching data about products that belong a specific group. |