qlic

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

qlic_types.h (604B)


      1 #ifndef __QLIC_TYPES_H
      2 #define __QLIC_TYPES_H
      3 
      4 #include <stddef.h>
      5 
      6 #include <qlic_private.h>
      7 
      8 typedef size_t (*qlic_response_callback)(char*, size_t, size_t, void*);
      9 
     10 typedef struct QlicString {
     11 	char* string;
     12 	size_t len;
     13 } QlicString;
     14 
     15 typedef enum QlicErrorCode {
     16 	QLIC_ERROR = 0,
     17 	QLIC_OK
     18 } QlicErrorCode;
     19 
     20 struct QlicCliqAction {
     21 	char* request_url;
     22 	size_t request_url_len;
     23 	qlic_response_callback callback;
     24 };
     25 
     26 /**
     27  * Network related information
     28  */
     29 typedef struct QlicContext {
     30 	void* context;
     31 	QlicString* request_url;
     32 	QlicString* client_id;
     33 	QlicString* client_secret;
     34 } QlicContext;
     35 
     36 #endif