WIP: devel : travail du mois de mars/avril #28
|
@ -47,7 +47,7 @@ struct model_t *knownModels = NULL;
|
||||||
* @param hashTable The hash table to populate.
|
* @param hashTable The hash table to populate.
|
||||||
* @param currentPath The path to the current node.
|
* @param currentPath The path to the current node.
|
||||||
*/
|
*/
|
||||||
void model_populate_hashtable(xmlNode *node,
|
void model_populate_hashtable (xmlNode *node,
|
||||||
xmlHashTablePtr hashTable,
|
xmlHashTablePtr hashTable,
|
||||||
char *currentPath)
|
char *currentPath)
|
||||||
{
|
{
|
||||||
|
@ -84,7 +84,7 @@ void model_populate_hashtable(xmlNode *node,
|
||||||
* @param path The path to the tag, with '/' as the delimiter.
|
* @param path The path to the tag, with '/' as the delimiter.
|
||||||
* @return The content of the tag at the end of the path, or NULL if not found.
|
* @return The content of the tag at the end of the path, or NULL if not found.
|
||||||
*/
|
*/
|
||||||
char* model_find_node_by_path(xmlNode *node, const char *path)
|
char* model_find_node_by_path (xmlNode *node, const char *path)
|
||||||
{
|
{
|
||||||
return (xmlNodePtr)xmlHashLookup(hashTable, (const xmlChar *)path);
|
return (xmlNodePtr)xmlHashLookup(hashTable, (const xmlChar *)path);
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ char* model_find_node_by_path(xmlNode *node, const char *path)
|
||||||
* @param newContent The new content to set for the node.
|
* @param newContent The new content to set for the node.
|
||||||
* @return 1 if the node was found and modified, 0 otherwise.
|
* @return 1 if the node was found and modified, 0 otherwise.
|
||||||
*/
|
*/
|
||||||
int model_modify_node(xmlHashTablePtr hashTable,
|
int model_modify_node (xmlHashTablePtr hashTable,
|
||||||
const char *path,
|
const char *path,
|
||||||
const char *newContent)
|
const char *newContent)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue