Refactored client module

This commit is contained in:
2019-03-12 09:26:44 +01:00
parent 0b05984f85
commit a49e32dff8
7 changed files with 352 additions and 258 deletions
+7 -1
View File
@@ -14,6 +14,10 @@
#include <stdarg.h>
#include <stdbool.h>
#ifndef AISL_WITHOUT_SSL
#include <openssl/ssl.h>
#endif
/* type casts */
#define AISL_CALLBACK(x) ((aisl_callback_t) x)
@@ -37,10 +41,12 @@ typedef struct aisl_stream * aisl_stream_t;
typedef void
(* aisl_callback_t) (void);
/* status return codes */
typedef enum
{
AISL_EXTCALL_ERROR = -3
AISL_INPUT_ERROR = -4
, AISL_EXTCALL_ERROR = -3
, AISL_SYSCALL_ERROR = -2
, AISL_MALLOC_ERROR = -1