1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3  * src/lib/qdisc.c     CLI QDisc Helpers
4  *
5  *	This library is free software; you can redistribute it and/or
6  *	modify it under the terms of the GNU Lesser General Public
7  *	License as published by the Free Software Foundation version 2.1
8  *	of the License.
9  *
10  * Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch>
11  */
12 
13 /**
14  * @ingroup cli
15  * @defgroup cli_qdisc Queueing Disciplines
16  * @{
17  */
18 
19 #include <netlink/cli/utils.h>
20 #include <netlink/cli/qdisc.h>
21 #include <netlink/route/class.h>
22 
nl_cli_qdisc_alloc(void)23 struct rtnl_qdisc *nl_cli_qdisc_alloc(void)
24 {
25 	struct rtnl_qdisc *qdisc;
26 
27 	if (!(qdisc = rtnl_qdisc_alloc()))
28 		nl_cli_fatal(ENOMEM, "Unable to allocate qdisc object");
29 
30 	return qdisc;
31 }
32 
33 /** @} */
34