Added silc_schedule_[set|get]_global. Added many APIs to call
[crypto.git] / lib / silcutil / silcthread_i.h
index 0038a616d862475504b005b4b0520c83db81ba3a..dfccc4f669faaf48e63902104a01dcae6dcbf3ee 100644 (file)
    with silc_calloc and freeable with silc_free, and must also be able to
    pre-allocate from stack. */
 typedef struct SilcTlsObject {
-  void *thread_context;                       /* Context set with SILC Tls API */
-  void *platform_context;             /* Platform specific context */
+  SilcSchedule schedule;                   /* Global scheduler */
+  void *thread_context;                            /* Context set with SILC Tls API */
+  void *platform_context;                  /* Platform specific context */
+  char error_reason[256];                  /* Reason for the error */
+  SilcResult error;                        /* Errno, last error */
 } *SilcTls, SilcTlsStruct;
 
 /* The internal Tls API.  Implementation is platform specific. */