Global Variable Interface
DESCRIPTION
The Global Variable API can be used to set variables as global in the process or in current thread. On some platforms, like Symbian, global variables cannot be used directly. This API can be used to write portable code that can use global variables on all supported platforms.
EXAMPLE
// Initialize global buffer silc_global_set_var("somebuf", 256, NULL, FALSE); // Retrieve the buffer unsigned char *buf = silc_global_get_var("somebuf", FALSE); // Set integer and its value global in the current thread SilcUInt32 integer = 100; silc_global_set_var("someint", 4, &integer, TRUE); // Retrieve the integer and change its value SilcUInt32 *intptr = silc_global_get_var("someint", TRUE); *intptr = 200;
TABLE OF CONTENTS