summaryrefslogtreecommitdiff
path: root/interchange.c
diff options
context:
space:
mode:
Diffstat (limited to 'interchange.c')
-rw-r--r--interchange.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/interchange.c b/interchange.c
index 2e50fba..d2a3217 100644
--- a/interchange.c
+++ b/interchange.c
@@ -43,6 +43,11 @@ void interchange_init(const char *url, const char *dir, const char *cookie,
#endif
}
+void interchange_page(const char *path, void (*handler)(interchange_response *))
+{
+ request(handler, NULL, NULL, "%s", path);
+}
+
void interchange_catalog(const char *prod_group, void (*handler)(interchange_response *), void (*callback)(struct interchange_catalog *))
{
char nonspaced[strlen(prod_group) + 1];
@@ -62,11 +67,6 @@ void interchange_product(const char *sku, void (*handler)(interchange_response *
request(handler, (void (*)(void *))callback, NULL, "%s", sku);
}
-void interchange_page(const char *path, void (*handler)(interchange_response *))
-{
- request(handler, NULL, NULL, "%s", path);
-}
-
void interchange_clear_product(struct interchange_product *product)
{
if (product->crosssell)