diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 09:41:34 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 09:41:34 +0800 |
commit | 4cd6fdb93eca409a76b0af860d9a0599b2f95f53 (patch) | |
tree | 6fc33a710a9199bb9cbf40313a32fd3fd26dbdb9 | |
parent | 8f806e54b24ba848c5be43e8e20966c061daa459 (diff) |
Fix header related problems
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | icclient.h | 34 | ||||
-rw-r--r-- | main.c | 1 |
3 files changed, 20 insertions, 17 deletions
diff --git a/Makefile.am b/Makefile.am index 49e3061..2929e04 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,8 +17,8 @@ endif if IOS libicclient_la_LDFLAGS += -static endif +include_HEADERS = icclient.h pkginclude_HEADERS = \ - icclient.h \ icclient/typedefs.h \ icclient/ord.h \ icclient/member.h \ @@ -1,25 +1,29 @@ #ifndef ICCLIENT_CLIENT_H #define ICCLIENT_CLIENT_H +#include <icclient/typedefs.h> + #define icclient_allproducts(callback, handler) icclient_results("All-Products", callback, handler) +struct icclient_product { + char *sku; + char *description; + char *comment; + char *thumb; + char *image; + double price; + char *prod_group; + double weight; + char *author; + struct icclient_product_crosssell { + size_t length; + char *skus[]; + } *crosssell; +}; + struct icclient_catalog { size_t length; - struct icclient_product { - char *sku; - char *description; - char *comment; - char *thumb; - char *image; - double price; - char *prod_group; - double weight; - char *author; - struct icclient_product_crosssell { - size_t length; - char *skus[]; - } *crosssell; - } *products[]; + struct icclient_product *products[]; }; #ifdef __cplusplus @@ -1,7 +1,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include "icclient/typedefs.h" #include "icclient.h" #include "icclient/member.h" |