Go to the source code of this file.
This library is for Moxa Connection Management
- Author
- York LY Chang YorkL.nosp@m.Y.Ch.nosp@m.ang@m.nosp@m.oxa..nosp@m.com
◆ mcm_ethernet_get_all_properties()
int mcm_ethernet_get_all_properties |
( |
char * |
interfaceName, |
|
|
int * |
arr_len, |
|
|
mcm_property_info ** |
info_arr |
|
) |
| |
A help function for get all ethernet properties.
- Parameters
-
interfaceName | (input) Interface name. |
arr_len | (output) Number of properties array. |
info_arr | (output) Properties array. |
- Returns
- If get ethernet properties success return 0. If fail, return error number.
◆ mcm_ethernet_get_property()
int mcm_ethernet_get_property |
( |
char * |
interfaceName, |
|
|
char * |
propertyName, |
|
|
char ** |
propertyValue, |
|
|
int |
cached |
|
) |
| |
A help function for get property.
- Parameters
-
interfaceName | (input) Interface name. |
propertyName | (input) Property name. |
cached | (input) Using caeched property value. |
propertyValue | (output) Property value. |
- Returns
- If get ethernet property success return 0. If fail, return error number.
◆ mcm_get_ethernet_info()
int mcm_get_ethernet_info |
( |
char * |
interfaceName, |
|
|
mcm_ethernet_info * |
ethernet_info |
|
) |
| |
A help function for get ethernet information.
- Parameters
-
interfaceName | (input) Interface name. |
ethernet_info | (output) A ethernet infomation structure. |
- Returns
- If get ethernet properties success return 0. If fail, return error number.