Added SILC Rand API, SILC Global Variables API and silcruntime.h.in
authorPekka Riikonen <priikone@silcnet.org>
Thu, 31 Jan 2008 17:23:02 +0000 (19:23 +0200)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 31 Jan 2008 17:23:02 +0000 (19:23 +0200)
commitb4dc1a71c928fdc0ec885ed5745b0d17b094ff7e
treed58857c8f7f797de3e423a4da9a3a1ee92d90b0d
parenta788ad407a51e84cfd41fedc6c053e62283ea2d7
Added SILC Rand API, SILC Global Variables API and silcruntime.h.in

The SILC Rand API provides simple PRNG.  The PRNG implementation
uses the Mersenne Twister PRNG.  Added test program for it too.

The SILC Global Variables API provides portable way to add process
global or thread global variables.  On some platforms global
variables cannot be directly used and this API provides portable
way to use them.  Added support for Unix, Windows and Symbian.
Added test program too.

Other changes include the addition of silcruntime.h.in the main
SILC Runtime Toolkit header file.  Added also silc_hash_destructor,
a generic destructor callback for convenience.
17 files changed:
TODO
lib/silcutil/Makefile.ad
lib/silcutil/silcglobal.c [new file with mode: 0644]
lib/silcutil/silcglobal.h [new file with mode: 0644]
lib/silcutil/silchashtable.c
lib/silcutil/silchashtable.h
lib/silcutil/silcrand.c [new file with mode: 0644]
lib/silcutil/silcrand.h [new file with mode: 0644]
lib/silcutil/silcruntime.h.in [new file with mode: 0644]
lib/silcutil/silcthread.c
lib/silcutil/silcthread_i.h
lib/silcutil/symbian/silcsymbianthread.cpp
lib/silcutil/tests/Makefile.am
lib/silcutil/tests/test_silcglobal.c [new file with mode: 0644]
lib/silcutil/tests/test_silcrand.c [new file with mode: 0644]
lib/silcutil/unix/silcunixthread.c
lib/silcutil/win32/silcwin32thread.c