All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kzs_globals.h File Reference

Global storage. More...

Functions

KZ_HEADER_BEGIN kzsError kzsGlobalsInitialize (void)
 Initializes counters. More...
 
kzsError kzsGlobalsUninitialize (void)
 Uninitializes counters. More...
 
void kzsGlobalsPut (kzString name, void *data)
 Put data to global storage. More...
 
void * kzsGlobalsGet (kzString name)
 Get data from global storage. More...
 

Detailed Description

Global storage.

This module can be used for storing global data. Warning: Such global data is not thread safe unless explicitly synchronized.

Copyright 2008-2020 by Rightware. All rights reserved.

Function Documentation

KZ_HEADER_BEGIN kzsError kzsGlobalsInitialize ( void  )

Initializes counters.

kzsError kzsGlobalsUninitialize ( void  )

Uninitializes counters.

void kzsGlobalsPut ( kzString  name,
void *  data 
)

Put data to global storage.

void* kzsGlobalsGet ( kzString  name)

Get data from global storage.

Returns KZ_NULL if no data is associated with the given name.