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_free_property_changed_event_context()
void mcm_free_property_changed_event_context |
( |
event_context * |
context | ) |
|
A help function for free properties changed event context .
- Parameters
-
context | (input) Properties changed event context . |
◆ mcm_init_property_changed_event_context()
A help function for init properties changed event context .
- Returns
- Return properties changed event context .
◆ mcm_start_listen_subscribe_properties_changed_event()
int mcm_start_listen_subscribe_properties_changed_event |
( |
event_context * |
context | ) |
|
A help function for get all ethernet properties.
- Parameters
-
context | [in] Properties changed event context. |
- Returns
- If start properties changed success return 0.If fail, return error number.
◆ mcm_stop_listen_subscribe_properties_changed_event()
int mcm_stop_listen_subscribe_properties_changed_event |
( |
event_context * |
context | ) |
|
A help function for get all ethernet properties.
- Parameters
-
context | [in] Properties changed event context. |
- Returns
- If stop properties changed success return 0.If fail, return error number.
◆ mcm_subscribe_properties_changed_interface()
int mcm_subscribe_properties_changed_interface |
( |
char * |
interface_name, |
|
|
event_context * |
context, |
|
|
int(*)(const char *interface_name, const char *property_name, const char *property_value) |
callback |
|
) |
| |
A help function for subscribe properties changed.
- Parameters
-
interface_name | [in] Interfaces name. |
context | [out] Properties changed event context . |
callback | [in] A callback function when property changed. |
interface_name | [in] Changed property interface name. |
property_name | [in] Changed property property name. |
property_value | [in] Changed property property value. |
- Returns
- If subscribe properties changed success return 0. If fail, return error number.
◆ mcm_subscribe_properties_changed_notify_interface()
int mcm_subscribe_properties_changed_notify_interface |
( |
char * |
interface_name, |
|
|
event_context * |
context, |
|
|
int(*)(int *received_prop) |
callback |
|
) |
| |
A help function for subscribe properties changed.
- Parameters
-
interface_name | [in] Changed property interface name. |
context | [out] Properties changed event context . |
callback | [in] A callback function when property changed. |
received_prop | [in] Notify received PropertiesChange Signal. |
- Returns
- If subscribe properties changed success return 0. If fail, return error number.
◆ mcm_subscribe_properties_changed_wan()
int mcm_subscribe_properties_changed_wan |
( |
event_context * |
context, |
|
|
int(*)(const char *property_name, const char *property_value) |
callback |
|
) |
| |
A help function for subscribe properties changed.
- Parameters
-
context | [out] Properties changed event context . |
callback | [in] A callback function when property changed. |
property_name | [in] Changed property property name. |
property_value | [in] Changed property property value. |
- Returns
- If subscribe properties changed success return 0. If fail, return error number.