libmcm  1.4.0
A client library for Moxa Connection Management
mcm-dyn-conf.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Functions

int mcm_dyn_conf_mod (char *confName, char *groupName, char *keyName, char *value)
 A function to configure the settings. More...
 
int mcm_dyn_conf_update_profile_list (char *ifaceName, char *action, char *number)
 A function to configure the settings. More...
 
int mcm_dyn_conf_save ()
 A function to save the settings. More...
 
int mcm_dyn_conf_list (char *confName, bool display_json)
 A function to list the settings of the configuration. More...
 

Detailed Description

This library is for Moxa Connection Management

Function Documentation

◆ mcm_dyn_conf_list()

int mcm_dyn_conf_list ( char *  confName,
bool  display_json 
)

A function to list the settings of the configuration.

Parameters
confName(input) Conf name.
display_json(input) Display JSON format data if set to true.
Returns
If configuration success return 0. If fail, return error.

◆ mcm_dyn_conf_mod()

int mcm_dyn_conf_mod ( char *  confName,
char *  groupName,
char *  keyName,
char *  value 
)

A function to configure the settings.

Parameters
confName(input) Conf name.
groupName(input) Group name.
keyName(input) Key name.
value(input) Value of the key.
Returns
If configuration success return 0. If fail, return error.

◆ mcm_dyn_conf_save()

int mcm_dyn_conf_save ( )

A function to save the settings.

Returns
If configuration success return 0. If fail, return error.

◆ mcm_dyn_conf_update_profile_list()

int mcm_dyn_conf_update_profile_list ( char *  ifaceName,
char *  action,
char *  number 
)

A function to configure the settings.

Parameters
ifaceName(input) Interface name.
action(input) Action name.
number(input) Profile number name.
Returns
If configuration success return 0. If fail, return error.