1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* NetworkManager -- Network link manager
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 * Copyright (C) 2013 Red Hat, Inc.
21 #ifndef __NETWORKMANAGER_DCB_H__
22 #define __NETWORKMANAGER_DCB_H__
24 #include "nm-default.h"
25 #include "nm-setting-dcb.h"
27 gboolean nm_dcb_enable (const char *iface, gboolean enable, GError **error);
28 gboolean nm_dcb_setup (const char *iface, NMSettingDcb *s_dcb, GError **error);
29 gboolean nm_dcb_cleanup (const char *iface, GError **error);
31 /* For testcases only! */
32 typedef gboolean (*DcbFunc) (char **argv,
40 gboolean do_helper (const char *iface,
46 ...) G_GNUC_PRINTF(6, 7);
48 gboolean _dcb_enable (const char *iface,
54 gboolean _dcb_setup (const char *iface,
60 gboolean _dcb_cleanup (const char *iface,
65 gboolean _fcoe_setup (const char *iface,
71 gboolean _fcoe_cleanup (const char *iface,
76 #endif /* __NETWORKMANAGER_DCB_H__ */