Loading...
Searching...
No Matches
configuration.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
#ifndef MPTCPD_CONFIGURATION_H
#define MPTCPD_CONFIGURATION_H
#include <stdint.h>
typedef void (*mptcpd_set_log_func_t)(void);
struct mptcpd_config
{
mptcpd_set_log_func_t log_set;
char *plugin_dir;
uint32_t addr_flags;
uint32_t notify_flags;
char *default_plugin;
struct l_queue *plugins_to_load;
};
struct mptcpd_config *mptcpd_config_create(int argc, char *argv[]);
void mptcpd_config_destroy(struct mptcpd_config *config);
#endif // MPTCPD_CONFIGURATION_H
/*
Local Variables:
c-file-style: "linux"
End:
*/
mptcpd_config_destroy
void mptcpd_config_destroy(struct mptcpd_config *config)
Destroy the mptcpd configuration.
Definition configuration.c:869
mptcpd_config_create
struct mptcpd_config * mptcpd_config_create(int argc, char *argv[])
Create a new mptcpd configuration.
Definition configuration.c:800
mptcpd_set_log_func_t
void(* mptcpd_set_log_func_t)(void)
Definition configuration.h:21
mptcpd_config
mptcpd configuration parameters
Definition configuration.h:31
mptcpd_config::plugins_to_load
struct l_queue * plugins_to_load
A list of plugins to load.
Definition configuration.h:70
mptcpd_config::addr_flags
uint32_t addr_flags
flags for addresses create
Definition configuration.h:55
mptcpd_config::notify_flags
uint32_t notify_flags
Various flags to control new address notification.
Definition configuration.h:58
mptcpd_config::default_plugin
char * default_plugin
Name of default plugin.
Definition configuration.h:67
mptcpd_config::log_set
mptcpd_set_log_func_t log_set
Function that configures the ELL logging mechanism.
Definition configuration.h:44
mptcpd_config::plugin_dir
char * plugin_dir
Location of mptcpd plugins.
Definition configuration.h:47