Blame src/nm-dcb.h

Packit Service 87a54e
/* SPDX-License-Identifier: GPL-2.0-or-later */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2013 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NETWORKMANAGER_DCB_H__
Packit 5756e2
#define __NETWORKMANAGER_DCB_H__
Packit 5756e2
Packit 5756e2
#include "nm-setting-dcb.h"
Packit 5756e2
Packit Service a1bd4f
gboolean nm_dcb_enable(const char *iface, gboolean enable, GError **error);
Packit Service a1bd4f
gboolean nm_dcb_setup(const char *iface, NMSettingDcb *s_dcb, GError **error);
Packit Service a1bd4f
gboolean nm_dcb_cleanup(const char *iface, GError **error);
Packit 5756e2
Packit 5756e2
/* For testcases only! */
Packit Service a1bd4f
typedef gboolean (*DcbFunc)(char **argv, guint which, gpointer user_data, GError **error);
Packit 5756e2
Packit 5756e2
#define DCBTOOL 0
Packit 5756e2
#define FCOEADM 1
Packit 5756e2
Packit Service a1bd4f
gboolean do_helper(const char *iface,
Packit Service a1bd4f
                   guint       which,
Packit Service a1bd4f
                   DcbFunc     run_func,
Packit Service a1bd4f
                   gpointer    user_data,
Packit Service a1bd4f
                   GError **   error,
Packit Service a1bd4f
                   const char *fmt,
Packit Service a1bd4f
                   ...) G_GNUC_PRINTF(6, 7);
Packit Service a1bd4f
Packit Service a1bd4f
gboolean _dcb_enable(const char *iface,
Packit Service a1bd4f
                     gboolean    enable,
Packit Service a1bd4f
                     DcbFunc     run_func,
Packit Service a1bd4f
                     gpointer    user_data,
Packit Service a1bd4f
                     GError **   error);
Packit Service a1bd4f
Packit Service a1bd4f
gboolean _dcb_setup(const char *  iface,
Packit Service a1bd4f
                    NMSettingDcb *s_dcb,
Packit Service a1bd4f
                    DcbFunc       run_func,
Packit Service a1bd4f
                    gpointer      user_data,
Packit Service a1bd4f
                    GError **     error);
Packit Service a1bd4f
Packit Service a1bd4f
gboolean _dcb_cleanup(const char *iface, DcbFunc run_func, gpointer user_data, GError **error);
Packit Service a1bd4f
Packit Service a1bd4f
gboolean _fcoe_setup(const char *  iface,
Packit 5756e2
                     NMSettingDcb *s_dcb,
Packit Service a1bd4f
                     DcbFunc       run_func,
Packit Service a1bd4f
                     gpointer      user_data,
Packit Service a1bd4f
                     GError **     error);
Packit Service a1bd4f
Packit Service a1bd4f
gboolean _fcoe_cleanup(const char *iface, DcbFunc run_func, gpointer user_data, GError **error);
Packit 5756e2
Packit 5756e2
#endif /* __NETWORKMANAGER_DCB_H__ */