libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <opt.h>
Public Attributes | |
void(* | free )(ptpmgmt_opt opt) |
void(* | useDefOption )(ptpmgmt_opt opt) |
bool(* | insert )(ptpmgmt_opt opt, struct ptpmgmt_opt_option *addOpt) |
const char *(* | get_help )(ptpmgmt_opt opt) |
const char *(* | get_msg )(ptpmgmt_opt opt) |
enum ptpmgmt_opt_loop_val(* | parse_options )(ptpmgmt_opt opt, int argc, char *argv[]) |
bool(* | have )(ptpmgmt_opt opt, char askOpt) |
const char *(* | val )(ptpmgmt_opt opt, char valOpt) |
int(* | val_i )(ptpmgmt_opt opt, char valOpt) |
char(* | get_net_transport )(ptpmgmt_opt opt) |
bool(* | have_more )(ptpmgmt_opt opt) |
int(* | process_next )(ptpmgmt_opt opt) |
The ptpmgmt options structure hold the options object and call backs to call C++ methods
void(* ptpmgmt_opt_t::free) (ptpmgmt_opt opt) |
< Free an options object
[in,out] | opt | options object to free |
const char*(* ptpmgmt_opt_t::get_help) (ptpmgmt_opt opt) |
Get help message
[in,out] | opt | options object |
const char*(* ptpmgmt_opt_t::get_msg) (ptpmgmt_opt opt) |
Get parse_options() message
[in,out] | opt | options object |
char(* ptpmgmt_opt_t::get_net_transport) (ptpmgmt_opt opt) |
get Network Transport value
[in,out] | opt | options object |
bool(* ptpmgmt_opt_t::have) (ptpmgmt_opt opt, char askOpt) |
Is option on command line
[in,out] | opt | options object |
[in] | askOpt | short option character |
bool(* ptpmgmt_opt_t::have_more) (ptpmgmt_opt opt) |
Do we have more argumends on the command line, left unprocessed
[in,out] | opt | options object |
bool(* ptpmgmt_opt_t::insert) (ptpmgmt_opt opt, struct ptpmgmt_opt_option *addOpt) |
Insert option
[in,out] | opt | options object |
[in] | addOpt | new option parameters |
enum ptpmgmt_opt_loop_val(* ptpmgmt_opt_t::parse_options) (ptpmgmt_opt opt, int argc, char *argv[]) |
Parse command line
[in,out] | opt | options object |
[in] | argc | number of arguments |
[in] | argv | array of command line arguments |
int(* ptpmgmt_opt_t::process_next) (ptpmgmt_opt opt) |
First argumend on the command line, left unprocessed
[in,out] | opt | options object |
void(* ptpmgmt_opt_t::useDefOption) (ptpmgmt_opt opt) |
Use PMC default options
[in,out] | opt | options object |
const char*(* ptpmgmt_opt_t::val) (ptpmgmt_opt opt, char valOpt) |
get option value
[in,out] | opt | options object |
[in] | valOpt | short option character |
int(* ptpmgmt_opt_t::val_i) (ptpmgmt_opt opt, char valOpt) |
get option integer value
[in,out] | opt | options object |
[in] | valOpt | short option character |