~ubuntu-branches/ubuntu/oneiric/gmerlin/oneiric

« back to all changes in this revision

Viewing changes to lib/cfg_xml.c

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-03-20 10:53:50 UTC
  • mfrom: (1.1.3 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100320105350-ny481yhh3v12bnuo
* New upstream release. 
Closes: #573833
* Bumped standards-version.
* Bumped build-dep on libgavl.
* Refreshed patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************
2
2
 * gmerlin - a general purpose multimedia framework and applications
3
3
 *
4
 
 * Copyright (c) 2001 - 2008 Members of the Gmerlin project
 
4
 * Copyright (c) 2001 - 2010 Members of the Gmerlin project
5
5
 * gmerlin-general@lists.sourceforge.net
6
6
 * http://gmerlin.sourceforge.net
7
7
 *
363
363
  xmlSaveFile(filename, xml_doc);
364
364
  xmlFreeDoc(xml_doc);
365
365
  }
 
366
 
 
367
void bg_cfg_section_dump(bg_cfg_section_t * section, const char * filename)
 
368
  {
 
369
  xmlDocPtr  xml_doc;
 
370
  xmlNodePtr xml_section;
 
371
  xml_doc = xmlNewDoc((xmlChar*)"1.0");
 
372
  xml_section = xmlNewDocRawNode(xml_doc, NULL, (xmlChar*)"SECTION", NULL);
 
373
  xmlDocSetRootElement(xml_doc, xml_section);
 
374
  BG_XML_SET_PROP(xml_section, "name", section->name);
 
375
  bg_cfg_section_2_xml(section, xml_section);
 
376
  xmlSaveFile(filename, xml_doc);
 
377
  xmlFreeDoc(xml_doc);
 
378
  }