summaryrefslogtreecommitdiff
path: root/client.c
AgeCommit message (Collapse)Author
2021-11-14One handle for every threadꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
See libcurl-tutorial(3) manual page, "Handle the Easy libcurl".
2021-07-13Revert "Rename page to path"ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
This reverts commit 294b1faf5509e1eda8c80bb42749336e76f96e03. Generic path can't be here, but page can.
2021-07-10Rename page to pathꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
as it is very generic, that the response may not necessarily be a "page". This function is kept because we still need a generic one here at C world (for folks not using Qt, for example). Besides, the last time I tried, I remember Qt Network failed to build for Emscripten. So, this is what the function is for.. we need the API to stillm be uniform, AND, works on Emscripten too. It is very generic that it should later be out of the Interchange specific client code.
2021-06-19One handle for the whole sessionꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-19request not inline any moreꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-19No curl init for Emscriptenꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-19One handle for one requestꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-18Generalise function namesꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
to using words like catalog and product instead of results and flypage.
2021-06-18Especially on Emscripten, post is pointed by userData, to be freed laterꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-18Leave request as the minimum of what needs to be sharedꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-17Rename fetch to responseꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-17Swapped handler and callback parameter positionsꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-14Separate the part that depends on libtidyꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-14Strap results handlerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-13Fix the way libcurl has been usedꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-13Move icclient/client.h to icclient.hꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-13Merge catalog and product to clientꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-13Remove non default handlerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-12Further simplify icclient_results functionꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-12Move all libcurl related stuff to requestꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-10Anticipate asynchronous data fetchꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-10The client now takes an "on success" callback argumentꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2021-06-09Add support for Emscriptenꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀
2020-07-11Revert prodgroup to prod_groupꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-07-11Move order function to ord namespaceꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-07-11Move newaccount, login, logout to member namespaceꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-07-11Rename icclient_user to icclient_memberꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-29Remove unnecessary cURL handler parameter variablesꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-29Reorder flypage parametersꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-29Reorder results parametersꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-29Reorder the order function parametersꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-28Order init functionꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-28Key product initꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-20Move catalog freeing implementation to catalog's own implementationꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-20Move product freeing implementation to product's own implementationꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-20prodgroup gets freed tooꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-19Add parentheses to remove warningꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-19Results page implementationꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-19Add thumb member to productꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-14Flypage functionꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2020-06-10Add author member to product structꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2019-12-29Add parameters for handler and user pointersꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
to login related functions. These are the cURL write function and data respectively.
2019-11-04Test the bsearch result firstꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
and only get content when pointer isn't NULL
2019-11-04As soon as an order is created, there will be an itemꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2019-11-04Same item doesn't add to nitemsꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2019-10-24Increase nitems on every orderꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2019-10-24Initialise key_productꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
otherwise other members might be freed because they might not necessary be NULLs.
2019-10-22Correct bsearch usageꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2019-10-22Turn on verbose again when debuggingꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀
2019-10-22Use the product free-er function to free search keyꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀