diff options
Diffstat (limited to 'src/familiar-players-db.c')
-rw-r--r-- | src/familiar-players-db.c | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/src/familiar-players-db.c b/src/familiar-players-db.c index 4d2b452..ec0c16f 100644 --- a/src/familiar-players-db.c +++ b/src/familiar-players-db.c @@ -1,4 +1,4 @@ -/* familiar-players-db.c generated by valac 0.9.5, the Vala compiler +/* familiar-players-db.c generated by valac 0.9.7, the Vala compiler * generated from familiar-players-db.vala, do not modify */ /* @@ -70,16 +70,16 @@ enum { }; #define FAMILIAR_PLAYERS_DB_GROUP_NAME "Seen Database" #define FAMILIAR_PLAYERS_DB_KEY_NAME "DesktopFiles" +FamiliarPlayersDB* familiar_players_db_new (void); +FamiliarPlayersDB* familiar_players_db_construct (GType object_type); static gboolean familiar_players_db_create_key_file (FamiliarPlayersDB* self); static gboolean familiar_players_db_check_for_keys (FamiliarPlayersDB* self); static gboolean familiar_players_db_load_data_from_key_file (FamiliarPlayersDB* self); -FamiliarPlayersDB* familiar_players_db_new (void); -FamiliarPlayersDB* familiar_players_db_construct (GType object_type); -static void _vala_array_add1 (char*** array, int* length, int* size, char* value); static gboolean familiar_players_db_write_db (FamiliarPlayersDB* self); +static void _vala_array_add1 (char*** array, int* length, int* size, char* value); +void familiar_players_db_insert (FamiliarPlayersDB* self, const char* desktop); gboolean familiar_players_db_already_familiar (FamiliarPlayersDB* self, const char* desktop); static gboolean _familiar_players_db_write_db_gsource_func (gpointer self); -void familiar_players_db_insert (FamiliarPlayersDB* self, const char* desktop); GeeSet* familiar_players_db_records (FamiliarPlayersDB* self); static void familiar_players_db_finalize (GObject* obj); static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func); @@ -128,10 +128,9 @@ FamiliarPlayersDB* familiar_players_db_new (void) { static gboolean familiar_players_db_create_key_file (FamiliarPlayersDB* self) { gboolean result = FALSE; - GError * _inner_error_; gboolean _result_; + GError * _inner_error_ = NULL; g_return_val_if_fail (self != NULL, FALSE); - _inner_error_ = NULL; _result_ = FALSE; if (g_file_test (self->priv->file_name, G_FILE_TEST_EXISTS)) { GKeyFile* _tmp0_; @@ -190,9 +189,8 @@ static gboolean familiar_players_db_create_key_file (FamiliarPlayersDB* self) { static gboolean familiar_players_db_check_for_keys (FamiliarPlayersDB* self) { gboolean result = FALSE; - GError * _inner_error_; + GError * _inner_error_ = NULL; g_return_val_if_fail (self != NULL, FALSE); - _inner_error_ = NULL; { gboolean _tmp0_; _tmp0_ = g_key_file_has_key (self->priv->key_file, FAMILIAR_PLAYERS_DB_GROUP_NAME, FAMILIAR_PLAYERS_DB_KEY_NAME, &_inner_error_); @@ -236,13 +234,12 @@ static gboolean familiar_players_db_check_for_keys (FamiliarPlayersDB* self) { static gboolean familiar_players_db_load_data_from_key_file (FamiliarPlayersDB* self) { gboolean result = FALSE; - GError * _inner_error_; + GError * _inner_error_ = NULL; g_return_val_if_fail (self != NULL, FALSE); - _inner_error_ = NULL; { - char** _tmp1_; - gint _desktops_size_; gint desktops_length1; + gint _desktops_size_; + char** _tmp1_; gsize _tmp0_; char** desktops; desktops = (_tmp1_ = g_key_file_get_string_list (self->priv->key_file, FAMILIAR_PLAYERS_DB_GROUP_NAME, FAMILIAR_PLAYERS_DB_KEY_NAME, &_tmp0_, &_inner_error_), desktops_length1 = _tmp0_, _desktops_size_ = desktops_length1, _tmp1_); @@ -307,17 +304,16 @@ static void _vala_array_add1 (char*** array, int* length, int* size, char* value static gboolean familiar_players_db_write_db (FamiliarPlayersDB* self) { gboolean result = FALSE; - GError * _inner_error_; GKeyFile* keyfile; - char** _tmp1_; - gint _desktops_size_; gint desktops_length1; + gint _desktops_size_; + char** _tmp1_; char** _tmp0_ = NULL; char** desktops; gsize data_length = 0UL; char* data; + GError * _inner_error_ = NULL; g_return_val_if_fail (self != NULL, FALSE); - _inner_error_ = NULL; keyfile = g_key_file_new (); desktops = (_tmp1_ = (_tmp0_ = g_new0 (char*, 0 + 1), _tmp0_), desktops_length1 = 0, _desktops_size_ = desktops_length1, _tmp1_); { @@ -458,8 +454,8 @@ static char* bool_to_string (gboolean self) { gboolean familiar_players_db_already_familiar (FamiliarPlayersDB* self, const char* desktop) { gboolean result = FALSE; - char* _tmp1_; GeeSet* _tmp0_; + char* _tmp1_; GeeSet* _tmp2_; gboolean _tmp3_; g_return_val_if_fail (self != NULL, FALSE); |