Let mbus_str_xml_encode return a resultcode
This commit is contained in:
@ -498,7 +498,7 @@ typedef struct _mbus_data_secondary_address {
|
||||
//
|
||||
unsigned int mbus_manufacturer_id(char *manufacturer);
|
||||
|
||||
// Since libmbus writes some special characters (ASCII > 0x7F) into the XML output (e.g. <20>C for centigrade == ASCII 0xB0)
|
||||
// Since libmbus writes some special characters (ASCII > 0x7F) into the XML output (e.g. <20>C for centigrade == ASCII 0xB0)
|
||||
// it is useful to attach the appropriate code page for postprocessing.
|
||||
#define MBUS_XML_PROCESSING_INSTRUCTION "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
|
||||
|
||||
@ -569,7 +569,7 @@ mbus_slave_data *mbus_slave_data_get(size_t i);
|
||||
//
|
||||
// XML generating functions
|
||||
//
|
||||
void mbus_str_xml_encode(unsigned char *dst, const unsigned char *src, size_t max_len);
|
||||
int mbus_str_xml_encode(unsigned char *dst, const unsigned char *src, size_t max_len);
|
||||
char *mbus_data_xml(mbus_frame_data *data);
|
||||
char *mbus_data_variable_xml(mbus_data_variable *data);
|
||||
char *mbus_data_fixed_xml(mbus_data_fixed *data);
|
||||
|
Reference in New Issue
Block a user