Globals API
Handling globals
In GRAS, using globals is forbidden since the daemons will
sometimes run as a thread inside the same process. So, you have to put
all globals in a structure, and tell GRAS that it's your globals.
Use the grasUserdataNew() macro to create a new user data (or malloc it
yourself and use grasUserdataSet yourself), and grasUserdataGet() to
retrive a reference to it.
@ud:
@type: