summaryrefslogtreecommitdiffstats
path: root/src/dmixml.c
Commit message (Collapse)AuthorAgeFilesLines
* Implemented dmixml_AddDMIstring()David Sommerseth2011-01-061-0/+42
| | | | | | | | | This function can be used instead of dmi_string() and dmixml_AddTextChild(). In those cases where dmi_string() returns NULL, this situation is handled more gracefully. In addition of also handling "not specified" situations better as well. Signed-off-by: David Sommerseth <davids@redhat.com>
* Allow format strings to be NULL in dmixml_Add*() functionsDavid Sommerseth2010-04-201-5/+19
| | | | | | | | | | | This bug was reported by Jan Hutař <jhutar@redhat.com> [1] The implemented fix avoids assertions if the format strings to dmixml_AddAttribute(), dmixml_AddTextChild() and dmixml_AddTextContent() functions are NULL. In these cases, it will result in an empty value instead of returning NULL from these functions. [1] <https://bugzilla.redhat.com/show_bug.cgi?id=583867>
* Removed not needed \n from log_append() entriesDavid Sommerseth2010-02-051-1/+1
|
* Added logging flag to log_append() to change log behaviourDavid Sommerseth2010-02-051-3/+3
| | | | | | | | | | | | | | Valid flags are: * LOGFL_NORMAL Log all messages to the log context, and send log message to stderr on errors * LOGFL_NODUPS Log only unique messages. Duplicated messages will be removed * LOGFL_NOSTDERR Don't write to stderr, even if errors occur
* Ported fprintf() -> log_append() on XML functionsDavid Sommerseth2010-01-081-4/+5
|
* Added new function: dmixml_FindNodeByAttr_NoCase(...)David Sommerseth2009-06-151-5/+11
| | | | | | | | | | This function will ignore the case of the string of the value to be found. This improves the behaviour mentioned in commit 20030e42b4d3f7283f6143641cb009a8dbf1da24. At the moment, the immediate advantage is that the pymap.xml is not strictly bound to if the type IDs in hex are in upper and/or lower case. Both cases and mixed cases will now work.
* Added missing file section for Doxygen parsingDavid Sommerseth2009-06-031-3/+12
|
* Added Doxygent comments, fixed missing copyrightDavid Sommerseth2009-06-031-22/+91
|
* Rewrote dmixml_FindNodeByAttr(...) function to also use TagNameDavid Sommerseth2009-06-021-20/+18
| | | | The previous version did not consider the tag name when searching for nodes.
* Return earlier when possibleNima Talebi2009-05-241-4/+4
|
* Completed preliminary reimplementation of type()Nima Talebi2009-05-241-0/+30
| | | | | | | Updated test unit to match. Throw an exception instead of returning None/False in some functions.
* Avoid segfault if XPATH_NODESET do not contain any dataDavid Sommerseth2009-05-131-1/+6
|
* Fixed segfault when processing XPATH_NODESET type and the nodeset is NULLDavid Sommerseth2009-05-131-1/+1
|
* Rewritten dmixml_GetXPathContent(...) and _get_key_value(...)David Sommerseth2009-04-301-10/+9
| | | | | This rewrite was to handle XPATH_NUMBER more correctly. Now these functions needs an preallocated memory buffer for the result.
* Added function for retrieving values from XPath objectsDavid Sommerseth2009-04-291-1/+34
| | | | Reverted commit 75aaf67d43cf4a28fe8d3e07111dab75a0c4396d in addition
* Only consider XML nodes which is of XML_ELEMENT_NODE when finding a specific ↵David Sommerseth2009-04-291-1/+2
| | | | node
* Don't return NULL in dmixml_GetContent(...)David Sommerseth2009-04-291-1/+1
|
* Do not add XML values if input is "(null)"David Sommerseth2009-04-291-3/+10
|
* Added right trim of xml dataDavid Sommerseth2009-04-291-0/+7
|
* Added more XML functionsDavid Sommerseth2009-04-291-0/+53
|
* Added missing copyright detailsDavid Sommerseth2009-04-291-1/+4
|
* Added dmixml.[ch] - helper function for generating XML nodesDavid Sommerseth2009-04-291-0/+140