|
libptpmgmt 2.0
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 )(const_ptpmgmt_opt opt) |
| const char *(* | get_msg )(const_ptpmgmt_opt opt) |
| enum ptpmgmt_opt_loop_val(* | parse_options )(ptpmgmt_opt opt, int argc, char *argv[]) |
| bool(* | have )(const_ptpmgmt_opt opt, char askOpt) |
| const char *(* | val )(const_ptpmgmt_opt opt, char valOpt) |
| int(* | val_i )(const_ptpmgmt_opt opt, char valOpt) |
| char(* | get_net_transport )(const_ptpmgmt_opt opt) |
| bool(* | have_more )(const_ptpmgmt_opt opt) |
| int(* | process_next )(const_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 this options object
| [in,out] | opt | options object to free |
| const char *(* ptpmgmt_opt_t::get_help) (const_ptpmgmt_opt opt) |
Get help message
| [in] | opt | options object |
| const char *(* ptpmgmt_opt_t::get_msg) (const_ptpmgmt_opt opt) |
Get parse_options() message
| [in] | opt | options object |
| char(* ptpmgmt_opt_t::get_net_transport) (const_ptpmgmt_opt opt) |
get Network Transport value
| [in] | opt | options object |
| bool(* ptpmgmt_opt_t::have) (const_ptpmgmt_opt opt, char askOpt) |
Is option on command line
| [in] | opt | options object |
| [in] | askOpt | short option character |
| bool(* ptpmgmt_opt_t::have_more) (const_ptpmgmt_opt opt) |
Do we have more argumends on the command line, left unprocessed
| [in] | 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) (const_ptpmgmt_opt opt) |
First argumend on the command line, left unprocessed
| [in] | 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) (const_ptpmgmt_opt opt, char valOpt) |
get option value
| [in] | opt | options object |
| [in] | valOpt | short option character |
| int(* ptpmgmt_opt_t::val_i) (const_ptpmgmt_opt opt, char valOpt) |
get option integer value
| [in] | opt | options object |
| [in] | valOpt | short option character |