qlic

Zoho Cliq but not really
git clone git@getsh.org:qlic.git
Log | Files | Refs | LICENSE

qlic_response_handler.c (614B)


      1 #include <qlic_response_handler.h>
      2 #include <stdio.h>
      3 #include <string.h>
      4 
      5 int qlic_handle_read_chat(char* response, size_t item_size, size_t nmemb, void *userp) {
      6 	/* printf("helo: %s\n", response); */
      7 	/* size_t bytes = item_size * nmemb; */
      8 /* #define QLIC_TEST_TEST "{\"text\": \"Hi\"}" */
      9 /* 	printf("Test: item_size %zu", item_size); */
     10 /* 	printf("Test: response %s", response); */
     11 	return 0;
     12 }
     13 
     14 size_t qlic_handle_send_message(char* response, size_t item_size, size_t nmemb, void *userp) {
     15 	size_t bytes = item_size * nmemb;
     16 	printf("Chunk size: %zu\n", nmemb);
     17 	printf("%s\n", response);
     18 	return bytes;
     19 }