5.11.0.0R3
Software Development Kit
 
Loading...
Searching...
No Matches
Import
bool ltrx_xml_import_from_stream (struct input_stream *in, const struct ltrx_write_user_message_info *lwumi)
 Import XML from stream.
 
bool ltrx_xml_trusted_import_from_stream (struct input_stream *raw, const struct ltrx_write_user_message_info *lwumi)
 Trusted import XML from stream.
 

Detailed Description

Import contains definitions pertaining to input of configuration information in XML format.

Function Documentation

◆ ltrx_xml_import_from_stream()

bool ltrx_xml_import_from_stream ( struct input_stream * in,
const struct ltrx_write_user_message_info * lwumi )

Import XML from stream.

Imports XML from the in stream, any error messages are directed via the lwumi environment.

EXAMPLE:

struct ltrx_message_to_tlog lmtt;
ltrx_xml_import_from_stream(in, &lmtt.lwumi);
bool ltrx_initialize_message_to_tlog(struct ltrx_message_to_tlog *mtot)
Initializes OEM environment with tlog messaging.
Definition msg_to_tlog.c:135
bool ltrx_xml_import_from_stream(struct input_stream *in, const struct ltrx_write_user_message_info *lwumi)
Import XML from stream.
Definition xml_import.c:1926
Return values
trueSuccess.
falseFailure.
Parameters
in[in,out] Stream which feeds in the XML.
[in]lwumiEnvironment.

◆ ltrx_xml_trusted_import_from_stream()

bool ltrx_xml_trusted_import_from_stream ( struct input_stream * raw,
const struct ltrx_write_user_message_info * lwumi )

Trusted import XML from stream.

Imports XML from the in stream, any error messages are directed via the lwumi environment. "Trusted" because much error testing is omitted, so we rely on XML input to be error free. In an SDK environment, the XML is prepared by software, and can be trusted if the use cases have been tested.

Note that this function no longer inputs const struct vardef_values_xml_import_control vvxic. The default settings are: Restore Factory Configuration = false, Reboot = false, Missing Values = Unchanged, OEM = No Change, and Delete Wlan Profiles = false. You may change these settings by placing an XML Import Control group into the XML input stream in one or more places.

EXAMPLE:

struct ltrx_message_to_tlog lmtt;
bool ltrx_xml_trusted_import_from_stream(struct input_stream *in, const struct ltrx_write_user_message_info *lwumi)
Trusted import XML from stream.
Definition xml_import.c:2154
Return values
trueSuccess.
falseFailure.
Parameters
raw[in,out] Stream which feeds in the XML.
[in]lwumiEnvironment.