Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mvlink.c « ext-links « others « test - github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1c764d39f13e779af61c0c239ade96a60f99012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>

#include "criu-plugin.h"
#include "criu-log.h"

extern cr_plugin_init_t cr_plugin_init;
extern cr_plugin_dump_ext_link_t cr_plugin_dump_ext_link;

int cr_plugin_init(void)
{
	pr_info("Initialized macvlan dumper\n");
	return 0;
}

int cr_plugin_dump_ext_link(int index, int type, char *kind)
{
	if (strcmp(kind, "macvlan"))
		return -ENOTSUP;
	else {
		pr_info("Dump %d macvlan\n", index);
		return 0;
	}
}