Add struct AgDbSave together with the function ag_db_save_data_free()
This commit is contained in:
22
src/ag-db.h
22
src/ag-db.h
@@ -29,9 +29,31 @@ struct _AgDbClass {
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
typedef struct _AgDbSave {
|
||||
gint db_id;
|
||||
gchar *name;
|
||||
gchar *country;
|
||||
gchar *city;
|
||||
gdouble longitude;
|
||||
gdouble latitude;
|
||||
gdouble altitude;
|
||||
gint year;
|
||||
guint month;
|
||||
guint day;
|
||||
guint hour;
|
||||
guint minute;
|
||||
guint second;
|
||||
gdouble timezone;
|
||||
gchar *house_system;
|
||||
gchar *note;
|
||||
} AgDbSave;
|
||||
|
||||
GType ag_db_get_type(void) G_GNUC_CONST;
|
||||
|
||||
AgDb *ag_db_get(void);
|
||||
|
||||
void ag_db_save_data_free(AgDbSave *save_data);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __AG_DB_H__ */
|
||||
|
Reference in New Issue
Block a user