Loading...
Searching...
No Matches
options.h
Go to the documentation of this file.
#ifndef JANUS_OPTIONS
#define JANUS_OPTIONS
#include <glib.h>
typedef struct janus_options {
gboolean daemon;
const char *pid_file;
gboolean disable_stdout;
gboolean log_stdout;
const char *log_file;
const char *log_rotate_sig;
int64_t check_openfiles_limit;
const char *cwd_path;
const char *interface;
const char *plugins_folder;
const char *config_file;
const char *configs_folder;
const char *cert_pem;
const char *cert_key;
const char *cert_pwd;
const char *stun_server;
const char *nat_1_1;
gboolean keep_private_host;
const char *ice_enforce_list;
const char *ice_ignore_list;
gboolean ipv6_candidates;
gboolean ipv6_link_local;
gboolean full_trickle;
gboolean ice_lite;
gboolean ice_tcp;
int min_nack_queue;
int no_media_timer;
int slowlink_threshold;
const char *rtp_port_range;
int twcc_period;
const char *server_name;
int session_timeout;
int reclaim_session_timeout;
int debug_level;
gboolean debug_timestamps;
gboolean disable_colors;
gboolean debug_locks;
const char *apisecret;
gboolean token_auth;
const char *token_auth_secret;
gboolean event_handlers;
gboolean no_webrtc_encryption;
gboolean print_version;
} janus_options;
gboolean janus_options_parse(janus_options *opts, int argc, char *argv[]);
void janus_options_destroy(void);
#endif
janus_options_destroy
void janus_options_destroy(void)
Helper method to get rid of the options parser resources.
Definition options.c:81
janus_options_parse
gboolean janus_options_parse(janus_options *opts, int argc, char *argv[])
Helper method to parse the command line options.
Definition options.c:16
janus_options
Struct containing the parsed command line options for Janus.
Definition options.h:17
janus_options::reclaim_session_timeout
int reclaim_session_timeout
Definition options.h:50
janus_options::nat_1_1
const char * nat_1_1
Definition options.h:34
janus_options::debug_level
int debug_level
Definition options.h:51
janus_options::cert_pwd
const char * cert_pwd
Definition options.h:32
janus_options::event_handlers
gboolean event_handlers
Definition options.h:58
janus_options::cert_pem
const char * cert_pem
Definition options.h:30
janus_options::no_media_timer
int no_media_timer
Definition options.h:44
janus_options::ice_lite
gboolean ice_lite
Definition options.h:41
janus_options::ice_enforce_list
const char * ice_enforce_list
Definition options.h:36
janus_options::config_file
const char * config_file
Definition options.h:28
janus_options::pid_file
const char * pid_file
Definition options.h:19
janus_options::token_auth_secret
const char * token_auth_secret
Definition options.h:57
janus_options::cwd_path
const char * cwd_path
Definition options.h:25
janus_options::debug_timestamps
gboolean debug_timestamps
Definition options.h:52
janus_options::ice_tcp
gboolean ice_tcp
Definition options.h:42
janus_options::twcc_period
int twcc_period
Definition options.h:47
janus_options::apisecret
const char * apisecret
Definition options.h:55
janus_options::ipv6_candidates
gboolean ipv6_candidates
Definition options.h:38
janus_options::disable_colors
gboolean disable_colors
Definition options.h:53
janus_options::slowlink_threshold
int slowlink_threshold
Definition options.h:45
janus_options::token_auth
gboolean token_auth
Definition options.h:56
janus_options::min_nack_queue
int min_nack_queue
Definition options.h:43
janus_options::daemon
gboolean daemon
Definition options.h:18
janus_options::plugins_folder
const char * plugins_folder
Definition options.h:27
janus_options::debug_locks
gboolean debug_locks
Definition options.h:54
janus_options::check_openfiles_limit
int64_t check_openfiles_limit
Definition options.h:24
janus_options::stun_server
const char * stun_server
Definition options.h:33
janus_options::rtp_port_range
const char * rtp_port_range
Definition options.h:46
janus_options::no_webrtc_encryption
gboolean no_webrtc_encryption
Definition options.h:59
janus_options::cert_key
const char * cert_key
Definition options.h:31
janus_options::server_name
const char * server_name
Definition options.h:48
janus_options::ipv6_link_local
gboolean ipv6_link_local
Definition options.h:39
janus_options::keep_private_host
gboolean keep_private_host
Definition options.h:35
janus_options::full_trickle
gboolean full_trickle
Definition options.h:40
janus_options::session_timeout
int session_timeout
Definition options.h:49
janus_options::log_rotate_sig
const char * log_rotate_sig
Definition options.h:23
janus_options::disable_stdout
gboolean disable_stdout
Definition options.h:20
janus_options::configs_folder
const char * configs_folder
Definition options.h:29
janus_options::interface
const char * interface
Definition options.h:26
janus_options::log_file
const char * log_file
Definition options.h:22
janus_options::log_stdout
gboolean log_stdout
Definition options.h:21
janus_options::print_version
gboolean print_version
Definition options.h:60
janus_options::ice_ignore_list
const char * ice_ignore_list
Definition options.h:37