libreport  2.9.5
A tool to inform users about various problems on the running system
Data Structures | Functions
xml_parser.h File Reference

Go to the source code of this file.

Data Structures

struct  my_parse_data
 

Functions

char * get_element_lang (struct my_parse_data *parse_data, const gchar **att_names, const gchar **att_values)
 Gets the language info for the current xml element. More...
 

Function Documentation

◆ get_element_lang()

char* get_element_lang ( struct my_parse_data parse_data,
const gchar **  att_names,
const gchar **  att_values 
)

Gets the language info for the current xml element.

Parameters
parse_dataData parsed from the current element
att_namesNames of attributes
att_valuesAttribute's values
Returns
lang value for xml:lang attribute if value matches current locale
"" (empty string) if element has no xml:lang attribute
NULL if the lang value does not match the current locale