![]() |
yumapro
25.10-1
YumaPro SDK
|
Convert between enumeration and string for log output. More...

Functions | |
| const xmlChar * | ncx_get_layer (ncx_layer_t layer) |
| Translate ncx_layer_t enum to a string. More... | |
| ncx_cvttyp_t | ncx_get_cvttyp_enum (const char *str) |
| Get the enum for the string name of a ncx_cvttyp_t enum. More... | |
| ncx_status_t | ncx_get_status_enum (const xmlChar *str) |
| Get the enum for the string name of a ncx_status_t enum. More... | |
| const xmlChar * | ncx_get_status_string (ncx_status_t status) |
| Get the string for the enum value of a ncx_status_t enum. More... | |
| ncx_data_class_t | ncx_get_data_class_enum (const xmlChar *str) |
| Get the enum for the string name of a ncx_data_class_t enum. More... | |
| const xmlChar * | ncx_get_data_class_str (ncx_data_class_t dataclass) |
| Get the string value for the ncx_data_class_t enum. More... | |
| const xmlChar * | ncx_get_access_str (ncx_access_t max_access) |
| Get the string name of a ncx_access_t enum. More... | |
| ncx_access_t | ncx_get_access_enum (const xmlChar *str) |
| Get the enum for the string name of a ncx_access_t enum. More... | |
| boolean | ncx_is_true (const xmlChar *str) |
| Check if an xmlChar string is a string OK for XSD boolean. More... | |
| boolean | ncx_is_false (const xmlChar *str) |
| Check if an xmlChar string is a string OK for XSD boolean. More... | |
| ncx_bad_data_t | ncx_get_baddata_enum (const xmlChar *valstr) |
| Check if the specified string matches an ncx_baddata_t enum. More... | |
| const xmlChar * | ncx_get_baddata_string (ncx_bad_data_t baddata) |
| Get the string for the specified enum value. More... | |
| const xmlChar * | ncx_get_withdefaults_string (ncx_withdefaults_t withdef) |
| Get the string for the specified enum value. More... | |
| ncx_withdefaults_t | ncx_get_withdefaults_enum (const xmlChar *withdefstr) |
| Get the enum for the specified string value. More... | |
| int32 | ncx_get_withdefaults_value (const xmlChar *withdefstr) |
| Get the YANG integer value for the enum for the specified string value. More... | |
| ncx_display_mode_t | ncx_get_display_mode_enum (const xmlChar *dmstr) |
| Get the enum for the specified string value. More... | |
| const xmlChar * | ncx_get_display_mode_str (ncx_display_mode_t dmode) |
| Get the string for the specified enum value. More... | |
| const xmlChar * | ncx_get_confirm_event_str (ncx_confirm_event_t event) |
| Get the string for the specified enum value. More... | |
| const xmlChar * | ncx_get_protocols_enabled (uint16 flags) |
| Get the string for the NETCONF protocols enabled in the flags. More... | |
| const xmlChar * | ncx_get_protocol_name (ncx_protocol_t proto) |
| Get the name string for the protocol. More... | |
| ncx_name_match_t | ncx_get_name_match_enum (const xmlChar *str) |
| Get the enum for the string name of a ncx_name_match_t enum. More... | |
| const xmlChar * | ncx_get_name_match_string (ncx_name_match_t match) |
| Get the string for the ncx_name_match_t enum. More... | |
| int32 | ncx_get_name_match_value (ncx_name_match_t match) |
| Get the YANG integer value for the ncx_name_match_t enum. More... | |
| status_t | ncx_str2txid (const xmlChar *str, ncx_transaction_id_t *txid) |
| Convert a string to a ncx_transaction_id_t. More... | |
| status_t | ncx_txid2str (ncx_transaction_id_t *txid, xmlChar **retbuff) |
| Convert a transaction ID to a string. More... | |
| const xmlChar * | ncx_get_btyp_string (ncx_btype_t btyp) |
| Get the enumeration string to the base type enum. More... | |
| const xmlChar * | ncx_cvt_encoding_enum (ncx_msg_encoding_t msg_encoding) |
| Convert an ncx_msg_encoding_t enum to a string. More... | |
| const xmlChar * | ncx_cvt_encoding_yang_enum (ncx_msg_encoding_t msg_encoding) |
| Convert an ncx_msg_encoding_t enum to a YANG string. More... | |
| ncx_msg_encoding_t | ncx_cvt_encoding_str (const xmlChar *msg_encoding) |
| Convert a ncx_msg_encoding_t string to its enum. More... | |
| ncx_msg_encoding_t | ncx_cvt_encoding_yang_str (const xmlChar *msg_encoding) |
| Convert a ncx_msg_encoding_t string to its YANG enum. More... | |
| const xmlChar * | ncx_get_yang_version_str (ncx_yang_version_t langver) |
| Get the yang-version string value for the enum. More... | |
| const xmlChar * | ncx_get_ses_event_str (ncx_ses_event_t ses_event) |
| Get the session event string for the enum. More... | |
Convert between enumeration and string for log output.
Used in logging and protocol messages.
| const xmlChar * ncx_cvt_encoding_enum | ( | ncx_msg_encoding_t | msg_encoding | ) |
Convert an ncx_msg_encoding_t enum to a string.
| msg_encoding | enum to convert |

| ncx_msg_encoding_t ncx_cvt_encoding_str | ( | const xmlChar * | msg_encoding | ) |
Convert a ncx_msg_encoding_t string to its enum.
| msg_encoding | string to convert |

| const xmlChar * ncx_cvt_encoding_yang_enum | ( | ncx_msg_encoding_t | msg_encoding | ) |
Convert an ncx_msg_encoding_t enum to a YANG string.
Use the string 'encode-foo' instead of 'foo'
| msg_encoding | enum to convert |
| ncx_msg_encoding_t ncx_cvt_encoding_yang_str | ( | const xmlChar * | msg_encoding | ) |
Convert a ncx_msg_encoding_t string to its YANG enum.
Use the string 'encode-foo' instead of 'foo'
| msg_encoding | string to convert |

| ncx_access_t ncx_get_access_enum | ( | const xmlChar * | str | ) |
Get the enum for the string name of a ncx_access_t enum.
| str | string name of the enum value |

| const xmlChar * ncx_get_access_str | ( | ncx_access_t | max_access | ) |
Get the string name of a ncx_access_t enum.
| max_access | enum value to convert |
| ncx_bad_data_t ncx_get_baddata_enum | ( | const xmlChar * | valstr | ) |
Check if the specified string matches an ncx_baddata_t enum.
| valstr | value string to check |

| const xmlChar * ncx_get_baddata_string | ( | ncx_bad_data_t | baddata | ) |
Get the string for the specified enum value.
| baddata | enum value to check |
| const xmlChar * ncx_get_btyp_string | ( | ncx_btype_t | btyp | ) |
Get the enumeration string to the base type enum.
| btyp | base type enum |
| const xmlChar * ncx_get_confirm_event_str | ( | ncx_confirm_event_t | event | ) |
Get the string for the specified enum value.
| event | enum confirm event value to convert |

| ncx_cvttyp_t ncx_get_cvttyp_enum | ( | const char * | str | ) |
Get the enum for the string name of a ncx_cvttyp_t enum.
| str | string name of the enum value |

| ncx_data_class_t ncx_get_data_class_enum | ( | const xmlChar * | str | ) |
Get the enum for the string name of a ncx_data_class_t enum.
| str | string name of the enum value |

| const xmlChar * ncx_get_data_class_str | ( | ncx_data_class_t | dataclass | ) |
Get the string value for the ncx_data_class_t enum.
| dataclass | enum value to convert |
| ncx_display_mode_t ncx_get_display_mode_enum | ( | const xmlChar * | dmstr | ) |
Get the enum for the specified string value.
| dmstr | string value to check |

| const xmlChar * ncx_get_display_mode_str | ( | ncx_display_mode_t | dmode | ) |
Get the string for the specified enum value.
| dmode | enum display mode value to check |
| const xmlChar * ncx_get_layer | ( | ncx_layer_t | layer | ) |
Translate ncx_layer_t enum to a string.
Get the ncx_layer_t string
| layer | ncx_layer_t to convert to a string |

| ncx_name_match_t ncx_get_name_match_enum | ( | const xmlChar * | str | ) |
Get the enum for the string name of a ncx_name_match_t enum.
| str | string name of the enum value |


| const xmlChar * ncx_get_name_match_string | ( | ncx_name_match_t | match | ) |
Get the string for the ncx_name_match_t enum.
| match | enum value |

| int32 ncx_get_name_match_value | ( | ncx_name_match_t | match | ) |
Get the YANG integer value for the ncx_name_match_t enum.
| match | enum value |
| const xmlChar * ncx_get_protocol_name | ( | ncx_protocol_t | proto | ) |
Get the name string for the protocol.
| proto | protocol enum to get |

| const xmlChar * ncx_get_protocols_enabled | ( | uint16 | flags | ) |
Get the string for the NETCONF protocols enabled in the flags.
Only checks base:1.0 and base:1.1!!!
| flags | bitmask to check |
| const xmlChar * ncx_get_ses_event_str | ( | ncx_ses_event_t | ses_event | ) |
Get the session event string for the enum.
| ses_event | enum to get string mapping for |
| ncx_status_t ncx_get_status_enum | ( | const xmlChar * | str | ) |
Get the enum for the string name of a ncx_status_t enum.
| str | string name of the enum value |


| const xmlChar * ncx_get_status_string | ( | ncx_status_t | status | ) |
Get the string for the enum value of a ncx_status_t enum.
| status | enum value |
| ncx_withdefaults_t ncx_get_withdefaults_enum | ( | const xmlChar * | withdefstr | ) |
Get the enum for the specified string value.
| withdefstr | string value to check |


| const xmlChar * ncx_get_withdefaults_string | ( | ncx_withdefaults_t | withdef | ) |
Get the string for the specified enum value.
| withdef | enum value to check |

| int32 ncx_get_withdefaults_value | ( | const xmlChar * | withdefstr | ) |
Get the YANG integer value for the enum for the specified string value.
| withdefstr | string value to check |

| const xmlChar * ncx_get_yang_version_str | ( | ncx_yang_version_t | langver | ) |
Get the yang-version string value for the enum.
| boolean ncx_is_false | ( | const xmlChar * | str | ) |
Check if an xmlChar string is a string OK for XSD boolean.
| str | xmlChar string to check |


| boolean ncx_is_true | ( | const xmlChar * | str | ) |
Check if an xmlChar string is a string OK for XSD boolean.
| str | xmlChar string to check |


| status_t ncx_str2txid | ( | const xmlChar * | str, |
| ncx_transaction_id_t * | txid | ||
| ) |
Convert a string to a ncx_transaction_id_t.
| str | string to convert | |
| [out] | txid | address of return TXID
|

| status_t ncx_txid2str | ( | ncx_transaction_id_t * | txid, |
| xmlChar ** | retbuff | ||
| ) |
Convert a transaction ID to a string.
| txid | transaction ID to convert | |
| [out] | retbuff | address of return buffer to malloc
|

