updates.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 3 Jul 2007 19:50:34 +0000 (19:50 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 3 Jul 2007 19:50:34 +0000 (19:50 +0000)
CHANGES.RUNTIME
TODO
configure.ad
includes/silc.h.in

index 48b719c270753a3fd6d73ea80daa64c92ec52a43..1983a05f62175b4c1d0dd35a6820250b56a40f86 100644 (file)
@@ -1,3 +1,32 @@
+Tue Jul  3 22:45:56 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
+
+       * Added concept of child stacks to SilcStack, allowing to create
+         true memory pools using SilcStack.  It is now possible to
+         create childs from the parent, without consuming the parent's
+         memory.  The child's memory is returned back to parent when
+         it is freed.  Affected files are lib/silcutil/silcstack.[ch],
+         silcstack_i.h.
+
+       * Added user specified SilcStack support to SILC ASN.1 API.
+         Affected files are lib/silcasn1/silcasn1.[ch].
+
+Tue Jul  3 18:17:54 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
+
+       * Added SILC DLL API for loading and using shared objects and
+         DLLs.  Affected files are lib/silcutil/sildll.[ch].  Added
+         also test program lib/silcutil/tests/test_silcdll.c.
+
+       * Added SILC Environment manipulation API to
+         lib/silcutil/silcenv.[ch] and test program to 
+         lib/silcutil/tests/test_silcenv.c.
+
+       * Renamed silc_hash_table_replace to silc_hash_table_set.
+         Added SilcStack support to SilcHashTable.  Affected files are
+         lib/silcutil/silchashtable.[ch].
+
+       * Added SilcStack support to SilcDList.  Added new function
+         silc_dlist_sinit.  Affected file is lib/silcutil/silcdlist.h.
+
 Mon Jul  2 21:07:34 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
 
        * Removed unaligned memory allocation from SilcStack.  Moved
diff --git a/TODO b/TODO
index 2941e0f85827027a6484d6f85e52241723c8e1b8..ac0175a6e883f6b400f734999754c159f8fa4bf8 100644 (file)
--- a/TODO
+++ b/TODO
@@ -82,20 +82,11 @@ Runtime library, lib/silcutil/
 
  o Fix universal time decoding (doesn't accept all formats) in silctime.c.
 
- o Add functions to manipulate environment variables.
-
-   SilcBool silc_setenv(const char *variable, const char *value);
-   const char *silc_getenv(const char *variable);
-   SilcBool silc_clearenv(const char *variable);
+ o Add functions to manipulate environment variables. (***DONE)
 
  o Add functions to loading shared/dynamic object symbols (replaces the
    SIM library (lib/silcsim) and introduces generic library).  Add this
-   to lib/silcutil/silcdll.[ch].
-
-   SilcDll silc_dll_load(const char *object_path, SilcDllFlags flags);
-   void silc_dll_close(SilcDll dll);
-   void *silc_dll_getsym(SilcDll dll, const char *symbol);
-   const char *silc_dll_error(SilcDll dll);
+   to lib/silcutil/silcdll.[ch].  (***TESTING NEEDED WIN32, TODO Symbian)
 
  o Add directory opening/traversing functions
 
@@ -181,11 +172,11 @@ Runtime library, lib/silcutil/
  o silc_stringprep to non-allocating version.
 
  o silc_hash_table_replace -> silc_hash_table_set.  Retain support for
-   silc_hash_table_replace as macro.
+   silc_hash_table_replace as macro. (***DONE)
 
- o SilcStack aware SilcHashTable.
+ o SilcStack aware SilcHashTable. (***DONE)
 
- o SilcStack aware SilcDList.
+ o SilcStack aware SilcDList. (***DONE)
 
  o Thread pool API.  Add this to lib/silcutil/silcthread.[ch].         (***DONE)
 
index 8ee9d61b87f5e4e494e6f19de149346b9fd56ebb..8926d430baf1cb0438d1dc2da7d2f9a69d33dbf4 100644 (file)
@@ -211,6 +211,7 @@ AC_CHECK_FUNCS(chmod fcntl stat fstat getenv putenv strerror)
 AC_CHECK_FUNCS(getpid getgid getsid getpgid getpgrp getuid sched_yield)
 AC_CHECK_FUNCS(setgroups initgroups nl_langinfo nanosleep)
 AC_CHECK_FUNCS(strchr snprintf strstr strcpy strncpy memcpy memset memmove)
+AC_CHECK_FUNCS(setenv getenv putenv unsetenv clearenv)
 
 # lib/contrib conditionals
 #
@@ -671,6 +672,7 @@ AC_CHECK_HEADERS(dlfcn.h,
     AC_CHECK_LIB(dl, dlopen,
       [
         AC_DEFINE([SILC_SIM], [], [HAVE_SIM])
+        AC_DEFINE([HAVE_DLOPEN], [], [HAVE_DLOPEN])
         sim_support=true
         LIBS="$LIBS -ldl"
       ],
@@ -678,6 +680,7 @@ AC_CHECK_HEADERS(dlfcn.h,
         AC_CHECK_LIB(c, dlopen,
           [
             AC_DEFINE([SILC_SIM], [], [HAVE_SIM])
+            AC_DEFINE([HAVE_DLOPEN], [], [HAVE_DLOPEN])
             sim_support=true
           ])
       ])
index accf52253b65e52d30cbe70023af67db24c19949..b758c50a8a350f4762335922e3c79aa217233a17 100644 (file)
@@ -220,6 +220,7 @@ extern "C" {
 #include "silcversion.h"
 
 /* SILC util library includes */
+#include "silclist.h"
 #include "silcstack.h"
 #include "silcmemory.h"
 #include "silcsnprintf.h"
@@ -247,8 +248,9 @@ extern "C" {
 #include "silcpkcs1.h"
 
 /* More SILC util library includes */
+#include "silcenv.h"
+#include "silcdll.h"
 #include "silchashtable.h"
-#include "silclist.h"
 #include "silcdlist.h"
 #include "silcasync.h"
 #include "silcstream.h"