Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 37918 | Differences between
and this patch

Collapse All | Expand All

(-)cycling-0.3.1/src/sorties.c (-2 / +1 lines)
Lines 298-304 parse_sortie_file (gchar *sorties_file) Link Here
298
}
298
}
299
299
300
gboolean
300
gboolean
301
add_new_sortie_to_file (CyclingSortie *sortie, gchar *file)
301
add_new_sortie_to_file (const CyclingSortie *sortie, gchar *file)
302
{
302
{
303
  xmlDocPtr doc = NULL;
303
  xmlDocPtr doc = NULL;
304
  xmlNodePtr node = NULL;
304
  xmlNodePtr node = NULL;
Lines 365-371 add_new_sortie_to_file (CyclingSortie *s Link Here
365
      xmlKeepBlanksDefault (0);
365
      xmlKeepBlanksDefault (0);
366
      xmlSaveFormatFile (file, doc, 1);
366
      xmlSaveFormatFile (file, doc, 1);
367
      xmlFreeDoc (doc);
367
      xmlFreeDoc (doc);
368
      cycling_sortie_free (sortie);
369
      return TRUE;
368
      return TRUE;
370
  }
369
  }
371
  xmlCleanupParser ();
370
  xmlCleanupParser ();
(-)cycling-0.3.1/src/sorties.h (-1 / +1 lines)
Lines 63-69 Link Here
63
  gboolean create_new_sortie_file (gchar *file);
63
  gboolean create_new_sortie_file (gchar *file);
64
  xmlDocPtr parse_sortie_file (gchar *sorties_file);
64
  xmlDocPtr parse_sortie_file (gchar *sorties_file);
65
  gboolean edit_sortie_in_file (const CyclingSortie *sortie, gulong sortie_number);
65
  gboolean edit_sortie_in_file (const CyclingSortie *sortie, gulong sortie_number);
66
  gboolean add_new_sortie_to_file (CyclingSortie *sortie, gchar *file);
66
  gboolean add_new_sortie_to_file (const CyclingSortie *sortie, gchar *file);
67
  CyclingSortie * read_sortie_infos_from_file (gulong sortie_number);
67
  CyclingSortie * read_sortie_infos_from_file (gulong sortie_number);
68
  CyclingSortie * read_sortie_from_file (xmlDocPtr doc, xmlNodePtr cur);
68
  CyclingSortie * read_sortie_from_file (xmlDocPtr doc, xmlNodePtr cur);
69
  
69
  

Return to bug 37918