summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.c b/main.c
index 2cad4f3..13df866 100644
--- a/main.c
+++ b/main.c
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
-#include <icclient/admin.h>
+#include <icclient/product.h>
#include <icclient/client.h>
int main(void)
@@ -27,10 +27,13 @@ int main(void)
icclient_init(url, NULL);
free(url);
- icclient_admin_login(name, pass, NULL, NULL, NULL);
+ icclient_login(name, pass, NULL, NULL, NULL);
free(name);
free(pass);
- icclient_admin_logout();
+ icclient_logout();
+
+ icclient_product_all(NULL, NULL);
+
icclient_cleanup();
}