File: inventory_test_enabled_plugin.c

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (17 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "criu-plugin.h"
#include "image.h"

int inventory_test_enabled_plugin_init(int stage)
{
	if (stage == CR_PLUGIN_STAGE__RESTORE)
		return !check_and_remove_inventory_plugin(CR_PLUGIN_DESC.name, strlen(CR_PLUGIN_DESC.name));

	return add_inventory_plugin(CR_PLUGIN_DESC.name);
}

void inventory_test_enabled_plugin_fini(int stage, int ret)
{
	return;
}

CR_PLUGIN_REGISTER("inventory_test_enabled_plugin", inventory_test_enabled_plugin_init, inventory_test_enabled_plugin_fini)