summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-14 09:56:12 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-14 09:56:12 +0800
commit0a2cf4390bef3b449b7cfa02c2c71e120c072be1 (patch)
treea94b13b73ce42785b72df3e142f2df4401ae39f2
parent802e1a0b2f6fbdd244f66fe2bffe26ff2e2566d7 (diff)
Flypage is the right term all this time
-rw-r--r--interchange.c5
-rw-r--r--interchange.h8
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.