Added API routines to get/set the verbose flag.
This commit is contained in:
parent
5789260432
commit
ba51358f7c
@ -146,7 +146,6 @@ struct iperf_test
|
|||||||
int daemon; /* -D option */
|
int daemon; /* -D option */
|
||||||
int debug; /* -d option - debug mode */
|
int debug; /* -d option - debug mode */
|
||||||
int no_delay; /* -N option */
|
int no_delay; /* -N option */
|
||||||
int output_format; /* -O option */
|
|
||||||
int reverse; /* -R option */
|
int reverse; /* -R option */
|
||||||
int verbose; /* -V option - verbose mode */
|
int verbose; /* -V option - verbose mode */
|
||||||
int json_output; /* -J option - JSON output */
|
int json_output; /* -J option - JSON output */
|
||||||
|
@ -80,6 +80,12 @@ void warning(char *str)
|
|||||||
|
|
||||||
/************** Getter routines for some fields inside iperf_test *************/
|
/************** Getter routines for some fields inside iperf_test *************/
|
||||||
|
|
||||||
|
int
|
||||||
|
iperf_get_verbose(struct iperf_test *ipt)
|
||||||
|
{
|
||||||
|
return ipt->verbose;
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
iperf_get_control_socket(struct iperf_test *ipt)
|
iperf_get_control_socket(struct iperf_test *ipt)
|
||||||
{
|
{
|
||||||
@ -178,6 +184,12 @@ iperf_get_test_may_use_sigalrm(struct iperf_test *ipt)
|
|||||||
|
|
||||||
/************** Setter routines for some fields inside iperf_test *************/
|
/************** Setter routines for some fields inside iperf_test *************/
|
||||||
|
|
||||||
|
void
|
||||||
|
iperf_set_verbose(struct iperf_test *ipt, int verbose)
|
||||||
|
{
|
||||||
|
ipt->verbose = verbose;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
iperf_set_control_socket(struct iperf_test *ipt, int ctrl_sck)
|
iperf_set_control_socket(struct iperf_test *ipt, int ctrl_sck)
|
||||||
{
|
{
|
||||||
|
@ -44,6 +44,7 @@ struct iperf_stream;
|
|||||||
#define SERVER_ERROR (-2)
|
#define SERVER_ERROR (-2)
|
||||||
|
|
||||||
/* Getter routines for some fields inside iperf_test. */
|
/* Getter routines for some fields inside iperf_test. */
|
||||||
|
int iperf_get_verbose( struct iperf_test* ipt );
|
||||||
int iperf_get_control_socket( struct iperf_test* ipt );
|
int iperf_get_control_socket( struct iperf_test* ipt );
|
||||||
int iperf_get_test_omit( struct iperf_test* ipt );
|
int iperf_get_test_omit( struct iperf_test* ipt );
|
||||||
int iperf_get_test_duration( struct iperf_test* ipt );
|
int iperf_get_test_duration( struct iperf_test* ipt );
|
||||||
@ -62,6 +63,7 @@ int iperf_get_test_zerocopy( struct iperf_test* ipt );
|
|||||||
int iperf_get_test_may_use_sigalrm( struct iperf_test* ipt );
|
int iperf_get_test_may_use_sigalrm( struct iperf_test* ipt );
|
||||||
|
|
||||||
/* Setter routines for some fields inside iperf_test. */
|
/* Setter routines for some fields inside iperf_test. */
|
||||||
|
void iperf_set_verbose( struct iperf_test* ipt, int verbose );
|
||||||
void iperf_set_control_socket( struct iperf_test* ipt, int ctrl_sck );
|
void iperf_set_control_socket( struct iperf_test* ipt, int ctrl_sck );
|
||||||
void iperf_set_test_omit( struct iperf_test* ipt, int omit );
|
void iperf_set_test_omit( struct iperf_test* ipt, int omit );
|
||||||
void iperf_set_test_duration( struct iperf_test* ipt, int duration );
|
void iperf_set_test_duration( struct iperf_test* ipt, int duration );
|
||||||
|
Loading…
Reference in New Issue
Block a user