コード例 #1
0
ファイル: shd-system.c プロジェクト: ln5/shadow
static Node* _system_switchInShadowContext() {
	Worker* worker = worker_getPrivate();
	if(worker->cached_plugin) {
		plugin_setShadowContext(worker->cached_plugin, TRUE);
	}
	return worker->cached_node;
}
コード例 #2
0
ファイル: shd-system.c プロジェクト: azadi/shadow
static Host* _system_switchInShadowContext() {
	Plugin* plugin = worker_getCurrentPlugin();
	if(plugin) {
		plugin_setShadowContext(plugin, TRUE);
	}
	return worker_getCurrentHost();
}
コード例 #3
0
ファイル: shd-system.c プロジェクト: ln5/shadow
static void _system_switchOutShadowContext(Node* node) {
	Worker* worker = worker_getPrivate();
	if(worker->cached_plugin) {
		plugin_setShadowContext(worker->cached_plugin, FALSE);
	}
}
コード例 #4
0
ファイル: shd-system.c プロジェクト: azadi/shadow
static void _system_switchOutShadowContext(Host* node) {
	Plugin* plugin = worker_getCurrentPlugin();
	if(plugin) {
		plugin_setShadowContext(plugin, FALSE);
	}
}