libnl 3.7.0
dummy.c
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2011 Thomas Graf <tgraf@suug.ch>
4 */
5
6/**
7 * @ingroup link
8 * @defgroup dummy Dummy
9 *
10 * @details
11 * \b Link Type Name: "dummy"
12 *
13 * @{
14 */
15
16#include <netlink-private/netlink.h>
17#include <netlink/netlink.h>
18#include <netlink-private/route/link/api.h>
19
20static struct rtnl_link_info_ops dummy_info_ops = {
21 .io_name = "dummy",
22};
23
24static void __init dummy_init(void)
25{
26 rtnl_link_register_info(&dummy_info_ops);
27}
28
29static void __exit dummy_exit(void)
30{
31 rtnl_link_unregister_info(&dummy_info_ops);
32}
33
34/** @} */