]> git.proxmox.com Git - mirror_frr.git/blame - lib/nexthop_group_private.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / lib / nexthop_group_private.h
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
50d89650
SW
2/*
3 * Nexthop Group Private Functions.
4 * Copyright (C) 2019 Cumulus Networks, Inc.
5 * Stephen Worley
50d89650
SW
6 */
7
8/**
9 * These functions should only be used internally for nexthop groups
10 * and in certain special cases. Please use `lib/nexthop_group.h` for
11 * any general nexthop_group api needs.
12 */
13
14#ifndef __NEXTHOP_GROUP_PRIVATE__
15#define __NEXTHOP_GROUP_PRIVATE__
16
17#include <nexthop_group.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23void _nexthop_add(struct nexthop **target, struct nexthop *nexthop);
24void _nexthop_del(struct nexthop_group *nhg, struct nexthop *nexthop);
50d89650
SW
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif /* __NEXTHOP_GROUP_PRIVATE__ */