static Node* _system_switchInShadowContext() { Worker* worker = worker_getPrivate(); if(worker->cached_plugin) { plugin_setShadowContext(worker->cached_plugin, TRUE); } return worker->cached_node; }
static Host* _system_switchInShadowContext() { Plugin* plugin = worker_getCurrentPlugin(); if(plugin) { plugin_setShadowContext(plugin, TRUE); } return worker_getCurrentHost(); }
static void _system_switchOutShadowContext(Node* node) { Worker* worker = worker_getPrivate(); if(worker->cached_plugin) { plugin_setShadowContext(worker->cached_plugin, FALSE); } }
static void _system_switchOutShadowContext(Host* node) { Plugin* plugin = worker_getCurrentPlugin(); if(plugin) { plugin_setShadowContext(plugin, FALSE); } }