summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-26 11:19:10 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-26 11:19:10 +0800
commit737bd34f39e9a3d14d170633e07c555d9e26d026 (patch)
treed67249324c3a1f7f3aab66d65af66abcc4cb22d3 /main.c
parentb2073e82d797557321a803332204d96f21e2cb22 (diff)
Build product code again
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();
}