FD.io VPP
v20.01-48-g3e0dafb74
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | mfib_entry_delegate_t_ |
A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functionality through the composition of, and delgation to, other objects. More... | |
Macros | |
#define | FOR_EACH_MFIB_DELEGATE(_entry, _fdt, _fed, _body) |
Typedefs | |
typedef enum mfib_entry_delegate_type_t_ | mfib_entry_delegate_type_t |
Delegate types. More... | |
typedef struct mfib_entry_delegate_t_ | mfib_entry_delegate_t |
A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functionality through the composition of, and delgation to, other objects. More... | |
Enumerations | |
enum | mfib_entry_delegate_type_t_ { MFIB_ENTRY_DELEGATE_COVERED } |
Delegate types. More... | |
Functions | |
void | mfib_entry_delegate_remove (struct mfib_entry_t_ *mfib_entry, mfib_entry_delegate_type_t type) |
mfib_entry_delegate_t * | mfib_entry_delegate_find_or_add (struct mfib_entry_t_ *mfib_entry, mfib_entry_delegate_type_t fdt) |
mfib_entry_delegate_t * | mfib_entry_delegate_get (const struct mfib_entry_t_ *mfib_entry, mfib_entry_delegate_type_t type) |
u8 * | format_mfib_entry_deletegate (u8 *s, va_list *args) |
#define FOR_EACH_MFIB_DELEGATE | ( | _entry, | |
_fdt, | |||
_fed, | |||
_body | |||
) |
Definition at line 33 of file mfib_entry_delegate.h.
typedef struct mfib_entry_delegate_t_ mfib_entry_delegate_t |
A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functionality through the composition of, and delgation to, other objects.
These 'other' objects are delegates. Delagates are thus attached to other MFIB objects to extend their functionality.
typedef enum mfib_entry_delegate_type_t_ mfib_entry_delegate_type_t |
Delegate types.
Delegate types.
Enumerator | |
---|---|
MFIB_ENTRY_DELEGATE_COVERED | Dependency list of covered entries. these are more specific entries that are interested in changes to their respective cover |
Definition at line 24 of file mfib_entry_delegate.h.
Definition at line 136 of file mfib_entry_delegate.c.
mfib_entry_delegate_t* mfib_entry_delegate_find_or_add | ( | struct mfib_entry_t_ * | mfib_entry, |
mfib_entry_delegate_type_t | fdt | ||
) |
Definition at line 92 of file mfib_entry_delegate.c.
mfib_entry_delegate_t* mfib_entry_delegate_get | ( | const struct mfib_entry_t_ * | mfib_entry, |
mfib_entry_delegate_type_t | type | ||
) |
void mfib_entry_delegate_remove | ( | struct mfib_entry_t_ * | mfib_entry, |
mfib_entry_delegate_type_t | type | ||
) |
Definition at line 54 of file mfib_entry_delegate.c.