|  |  |  | libgrss Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct GrssFeedsGroup; GrssFeedsGroup * grss_feeds_group_new (); GList * grss_feeds_group_get_formats (GrssFeedsGroup *group); GList * grss_feeds_group_parse_file (GrssFeedsGroup *group,const gchar *path,GError **error); gboolean grss_feeds_group_export_file (GrssFeedsGroup *group,GList *channels,const gchar *format,const gchar *uri,GError **error);
GrssFeedsGroup is an utility to read and write lists of GrssFeedChannels in different formats, such as OPML and XOXO.
GrssFeedsGroup * grss_feeds_group_new ();
Allocates a new GrssFeedsGroup.
| Returns : | a new GrssFeedsGroup. | 
GList *             grss_feeds_group_get_formats        (GrssFeedsGroup *group);
Returns the list of supported file formats.
| 
 | a GrssFeedsGroup. | 
| Returns : | a list of constant strings with names of supported formats. The list must be freed when no longer used | 
GList * grss_feeds_group_parse_file (GrssFeedsGroup *group,const gchar *path,GError **error);
Parses the given file to obtain list of listed feeds.
| 
 | a GrssFeedsGroup. | 
| 
 | path of the file to parse. | 
| 
 | location for eventual errors. | 
| Returns : | a list of GrssFeedChannels, or NULL if an error occours and erroris set. | 
gboolean grss_feeds_group_export_file (GrssFeedsGroup *group,GList *channels,const gchar *format,const gchar *uri,GError **error);
Creates a new file with the list of channels rappresented in the required
format. It a file already exists at the uri location, it is overwritten.
| 
 | a GrssFeedsGroup. | 
| 
 | list of GrssFeedChannels. | 
| 
 | string rappresenting the desired export format, as returnes by grss_feeds_group_get_formats(). | 
| 
 | URI of the file to write. | 
| 
 | location for eventual errors. | 
| Returns : | TRUEif the file is created correctly, orFALSEif an error
occours anderroris set. |