gbookmarkfile.h | gbookmarkfile.h | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
#endif | #endif | |||
#ifndef __G_BOOKMARK_FILE_H__ | #ifndef __G_BOOKMARK_FILE_H__ | |||
#define __G_BOOKMARK_FILE_H__ | #define __G_BOOKMARK_FILE_H__ | |||
#include <glib/gerror.h> | #include <glib/gerror.h> | |||
#include <time.h> | #include <time.h> | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
/* GError enumeration | /** | |||
* G_BOOKMARK_FILE_ERROR: | ||||
* | ||||
* Error domain for bookmark file parsing. | ||||
* Errors in this domain will be from the #GBookmarkFileError | ||||
* enumeration. See #GError for information on error domains. | ||||
*/ | */ | |||
#define G_BOOKMARK_FILE_ERROR (g_bookmark_file_error_quark ()) | #define G_BOOKMARK_FILE_ERROR (g_bookmark_file_error_quark ()) | |||
/** | ||||
* GBookmarkFileError: | ||||
* @G_BOOKMARK_FILE_ERROR_INVALID_URI: URI was ill-formed | ||||
* @G_BOOKMARK_FILE_ERROR_INVALID_VALUE: a requested field was not found | ||||
* @G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED: a requested application did | ||||
* not register a bookmark | ||||
* @G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND: a requested URI was not found | ||||
* @G_BOOKMARK_FILE_ERROR_READ: document was ill formed | ||||
* @G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING: the text being parsed was | ||||
* in an unknown encoding | ||||
* @G_BOOKMARK_FILE_ERROR_WRITE: an error occurred while writing | ||||
* @G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND: requested file was not found | ||||
* | ||||
* Error codes returned by bookmark file parsing. | ||||
*/ | ||||
typedef enum | typedef enum | |||
{ | { | |||
G_BOOKMARK_FILE_ERROR_INVALID_URI, | G_BOOKMARK_FILE_ERROR_INVALID_URI, | |||
G_BOOKMARK_FILE_ERROR_INVALID_VALUE, | G_BOOKMARK_FILE_ERROR_INVALID_VALUE, | |||
G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED, | G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED, | |||
G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND, | G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND, | |||
G_BOOKMARK_FILE_ERROR_READ, | G_BOOKMARK_FILE_ERROR_READ, | |||
G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING, | G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING, | |||
G_BOOKMARK_FILE_ERROR_WRITE, | G_BOOKMARK_FILE_ERROR_WRITE, | |||
G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND | G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND | |||
} GBookmarkFileError; | } GBookmarkFileError; | |||
GQuark g_bookmark_file_error_quark (void); | GQuark g_bookmark_file_error_quark (void); | |||
/* | /** | |||
* GBookmarkFile | * GBookmarkFile: | |||
* | ||||
* The <structname>GBookmarkFile</structname> struct contains only | ||||
* private data and should not be directly accessed. | ||||
*/ | */ | |||
typedef struct _GBookmarkFile GBookmarkFile; | typedef struct _GBookmarkFile GBookmarkFile; | |||
GBookmarkFile *g_bookmark_file_new (void); | GBookmarkFile *g_bookmark_file_new (void); | |||
void g_bookmark_file_free (GBookmarkFile *bookmar k); | void g_bookmark_file_free (GBookmarkFile *bookmar k); | |||
gboolean g_bookmark_file_load_from_file (GBookmarkFile *bookmar k, | gboolean g_bookmark_file_load_from_file (GBookmarkFile *bookmar k, | |||
const gchar *filename , | const gchar *filename , | |||
GError **error); | GError **error); | |||
gboolean g_bookmark_file_load_from_data (GBookmarkFile *bookmar k, | gboolean g_bookmark_file_load_from_data (GBookmarkFile *bookmar k, | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 26 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |