mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 05:27:47 +00:00
lib: clarify flex-algo mtype
Clarify flex-algo MTYPE by creating a specific MTYPE definition to the database of flex-algo information. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
34a8441fe8
commit
8b8861401a
@ -17,14 +17,15 @@
|
|||||||
|
|
||||||
#include "flex_algo.h"
|
#include "flex_algo.h"
|
||||||
|
|
||||||
DEFINE_MTYPE_STATIC(LIB, FLEX_ALGO, "Flex-Algo Definition");
|
DEFINE_MTYPE_STATIC(LIB, FLEX_ALGO_DATABASE, "Flex-Algo database");
|
||||||
|
DEFINE_MTYPE_STATIC(LIB, FLEX_ALGO, "Flex-Algo algorithm information");
|
||||||
|
|
||||||
struct flex_algos *flex_algos_alloc(flex_algo_allocator_t allocator,
|
struct flex_algos *flex_algos_alloc(flex_algo_allocator_t allocator,
|
||||||
flex_algo_releaser_t releaser)
|
flex_algo_releaser_t releaser)
|
||||||
{
|
{
|
||||||
struct flex_algos *flex_algos;
|
struct flex_algos *flex_algos;
|
||||||
|
|
||||||
flex_algos = XCALLOC(MTYPE_FLEX_ALGO, sizeof(*flex_algos));
|
flex_algos = XCALLOC(MTYPE_FLEX_ALGO_DATABASE, sizeof(*flex_algos));
|
||||||
flex_algos->flex_algos = list_new();
|
flex_algos->flex_algos = list_new();
|
||||||
flex_algos->allocator = allocator;
|
flex_algos->allocator = allocator;
|
||||||
flex_algos->releaser = releaser;
|
flex_algos->releaser = releaser;
|
||||||
|
Loading…
Reference in New Issue
Block a user