Add AgDbError error type
This commit is contained in:
parent
8a654e9c0f
commit
bfa4cf8cca
@ -17,6 +17,8 @@ typedef struct _AgDbPrivate {
|
|||||||
GdaConnection *conn;
|
GdaConnection *conn;
|
||||||
} AgDbPrivate;
|
} AgDbPrivate;
|
||||||
|
|
||||||
|
G_DEFINE_QUARK(ag_db_error_quark, ag_db_error);
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_PRIVATE(AgDb, ag_db, G_TYPE_OBJECT);
|
G_DEFINE_TYPE_WITH_PRIVATE(AgDb, ag_db, G_TYPE_OBJECT);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -49,6 +49,10 @@ typedef struct _AgDbSave {
|
|||||||
gchar *note;
|
gchar *note;
|
||||||
} AgDbSave;
|
} AgDbSave;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
AG_DB_ERROR_NO_CHART
|
||||||
|
} AgDbError;
|
||||||
|
|
||||||
GType ag_db_get_type(void) G_GNUC_CONST;
|
GType ag_db_get_type(void) G_GNUC_CONST;
|
||||||
|
|
||||||
AgDb *ag_db_get(void);
|
AgDb *ag_db_get(void);
|
||||||
@ -62,6 +66,9 @@ gboolean ag_db_save_chart(AgDb *db,
|
|||||||
|
|
||||||
GList *ag_db_get_chart_list(AgDb *db, GError **err);
|
GList *ag_db_get_chart_list(AgDb *db, GError **err);
|
||||||
|
|
||||||
|
#define AG_DB_ERROR (ag_db_error_quark())
|
||||||
|
GQuark ag_db_error_quark(void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __AG_DB_H__ */
|
#endif /* __AG_DB_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user