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