Blame libnm-core/nm-libnm-core-aux/nm-libnm-core-aux.h

Packit Service 87a54e
/* SPDX-License-Identifier: LGPL-2.1-or-later */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2019 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NM_LIBNM_CORE_AUX_H__
Packit 5756e2
#define __NM_LIBNM_CORE_AUX_H__
Packit 5756e2
Packit 5756e2
#include "nm-setting-team.h"
Packit 5756e2
Packit 5756e2
typedef enum {
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_TYPE_NONE     = 0,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_TYPE_ETHTOOL  = (1u << 0),
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_TYPE_NSNAPING = (1u << 1),
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_TYPE_ARPING   = (1u << 2),
Packit 5756e2
} NMTeamLinkWatcherType;
Packit 5756e2
Packit 5756e2
typedef enum {
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_NAME,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_DELAY_UP,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_DELAY_DOWN,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_INIT_WAIT,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_INTERVAL,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_MISSED_MAX,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_TARGET_HOST,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_VLANID,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_SOURCE_HOST,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_VALIDATE_ACTIVE,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_VALIDATE_INACTIVE,
Packit Service a1bd4f
    NM_TEAM_LINK_WATCHER_KEY_SEND_ALWAYS,
Packit Service a1bd4f
    _NM_TEAM_LINK_WATCHER_KEY_NUM,
Packit 5756e2
} NMTeamLinkWatcherKeyId;
Packit 5756e2
Packit Service a1bd4f
char *nm_utils_team_link_watcher_to_string(const NMTeamLinkWatcher *watcher);
Packit 5756e2
Packit Service a1bd4f
NMTeamLinkWatcher *nm_utils_team_link_watcher_from_string(const char *str, GError **error);
Packit 5756e2
Packit 5756e2
#endif /* __NM_LIBNM_CORE_AUX_H__ */