mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 18:20:22 +01:00
22 lines
675 B
C
22 lines
675 B
C
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||
|
|
/*
|
||
|
|
* Copyright (C) 2024 Red Hat, Inc.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef __NMP_DEVLINK_H__
|
||
|
|
#define __NMP_DEVLINK_H__
|
||
|
|
|
||
|
|
#include <linux/devlink.h>
|
||
|
|
|
||
|
|
struct nl_sock;
|
||
|
|
typedef struct _NMPlatform NMPlatform;
|
||
|
|
typedef struct _NMDevlink NMDevlink;
|
||
|
|
|
||
|
|
NMDevlink *nm_devlink_new(NMPlatform *platform, struct nl_sock *genl_sock_sync, int ifindex);
|
||
|
|
gboolean
|
||
|
|
nm_devlink_get_dev_identifier(NMDevlink *self, char **out_bus, char **out_addr, GError **error);
|
||
|
|
int nm_devlink_get_eswitch_mode(NMDevlink *self, GError **error);
|
||
|
|
gboolean
|
||
|
|
nm_devlink_set_eswitch_mode(NMDevlink *self, enum devlink_eswitch_mode mode, GError **error);
|
||
|
|
|
||
|
|
#endif /* __NMP_DEVLINK_H__ */
|