2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 05:18:00 +00:00

29 lines
524 B
C
Raw Normal View History

#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;
}
}