libnl: /data/src/libnl/lib/route/link/dummy.c Source File

libnl 3.12.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 "nl-default.h"
17
18#include <netlink/netlink.h>
19
20#include "link-api.h"
21
22static struct rtnl_link_info_ops dummy_info_ops = {
23 .io_name = "dummy",
24};
25
26static void _nl_init dummy_init(void)
27{
28 rtnl_link_register_info(&dummy_info_ops);
29}
30
31static void _nl_exit dummy_exit(void)
32{
33 rtnl_link_unregister_info(&dummy_info_ops);
34}
35
36/** @} */
rtnl_link_register_info
int rtnl_link_register_info(struct rtnl_link_info_ops *ops)
Register operations for a link info type.
Definition api.c:127
rtnl_link_unregister_info
int rtnl_link_unregister_info(struct rtnl_link_info_ops *ops)
Unregister operations for a link info type.
Definition api.c:162
rtnl_link_info_ops
Available operations to modules implementing a link info type.
Definition link-api.h:20