Added global stack to Tls context.
[crypto.git] / lib / silcutil / silcthread_i.h
index 0038a616d862475504b005b4b0520c83db81ba3a..d0d2fd737f2dd66a775e086f9ad0a41116c2fb65 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2007 Pekka Riikonen
+  Copyright (C) 2007 - 2008 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
    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 */
+  SilcStack stack;                         /* Global stack */
+  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. */