diff -Nru vala-0.16-0.15.2/ChangeLog vala-0.16-0.16.0/ChangeLog --- vala-0.16-0.15.2/ChangeLog 2012-02-25 16:30:24.000000000 +0000 +++ vala-0.16-0.16.0/ChangeLog 2012-03-26 16:29:41.000000000 +0000 @@ -1,3 +1,65 @@ +2012-03-26 Jürg Billeter + + Release 0.16.0 + + glib-2.0: Add g_dir_make_tmp binding + Fixes bug 672846. + +2012-03-21 Jürg Billeter + + codegen: Fix delegate target C name for static fields + Fixes bug 671110. + +2012-03-17 Jürg Billeter + + glib-2.0: Hide Thread constructors when targeting GLib < 2.32 + Fixes bug 672284. + +2012-03-11 Alberto Ruiz + + glib-2.0: Adds PREFIX_ERROR_POSITION to GLib.MarkupParseFlags + +2012-03-11 Alberto Ruiz + + glib-2.0: Adds GLib.MarkupParseContext.get_user_data () + Fixes bug #671749 + +2012-03-09 Jürg Billeter + + Add udisks2 bindings + +2012-03-09 Luca Bruno + + gtk+-3.0: Fix autogeneration of ColorButton.get_rgba + Apologies for approving commit 51044a92ed44776e6. + + gio-2.0: Mark TlsCertificate as a concrete class + Keep the class concrete for backward compatibility. + + Fixes bug 671459. + +2012-03-06 Robert Ancell + + gtk+-3.0: Fix output parameter of Gtk.ColorButton.get_rgba + Fixes bug 669386. + +2012-03-06 Luca Bruno + + glib-2.0: Add generic to ThreadPool.set_sort_function callback + Thanks to Paul Jakma for the patch. + + Fixes bug 670205. + +2012-03-06 Aaron Andersen + + posix: Fix several string functions + Fixes bug 671309. + +2012-03-06 Luca Bruno + + gtk+-2.0, gtk+-3.0: Unset virtual to Container.forall + Fixes bug 671394. + 2012-02-25 Jürg Billeter Release 0.15.2 diff -Nru vala-0.16-0.15.2/codegen/valaccodeattribute.c vala-0.16-0.16.0/codegen/valaccodeattribute.c --- vala-0.16-0.15.2/codegen/valaccodeattribute.c 2012-02-25 16:21:57.000000000 +0000 +++ vala-0.16-0.16.0/codegen/valaccodeattribute.c 2012-03-26 16:27:12.000000000 +0000 @@ -1043,30 +1043,56 @@ } _vala_code_node_unref0 (st); } else { - ValaSymbol* _tmp207_; + gboolean _tmp207_ = FALSE; ValaSymbol* _tmp208_; - ValaSymbol* _tmp209_; - gchar* _tmp210_ = NULL; - gchar* _tmp211_; - ValaSymbol* _tmp212_; - const gchar* _tmp213_; - const gchar* _tmp214_; - gchar* _tmp215_ = NULL; - gchar* _tmp216_; - _tmp207_ = sym; - _tmp208_ = vala_symbol_get_parent_symbol (_tmp207_); - _tmp209_ = _tmp208_; - _tmp210_ = vala_ccode_base_module_get_ccode_prefix (_tmp209_); - _tmp211_ = _tmp210_; - _tmp212_ = sym; - _tmp213_ = vala_symbol_get_name (_tmp212_); - _tmp214_ = _tmp213_; - _tmp215_ = g_strdup_printf ("%s%s", _tmp211_, _tmp214_); - _tmp216_ = _tmp215_; - _g_free0 (_tmp211_); - result = _tmp216_; - _vala_code_node_unref0 (sym); - return result; + gboolean _tmp210_; + _tmp208_ = sym; + if (VALA_IS_LOCAL_VARIABLE (_tmp208_)) { + _tmp207_ = TRUE; + } else { + ValaSymbol* _tmp209_; + _tmp209_ = sym; + _tmp207_ = VALA_IS_PARAMETER (_tmp209_); + } + _tmp210_ = _tmp207_; + if (_tmp210_) { + ValaSymbol* _tmp211_; + const gchar* _tmp212_; + const gchar* _tmp213_; + gchar* _tmp214_; + _tmp211_ = sym; + _tmp212_ = vala_symbol_get_name (_tmp211_); + _tmp213_ = _tmp212_; + _tmp214_ = g_strdup (_tmp213_); + result = _tmp214_; + _vala_code_node_unref0 (sym); + return result; + } else { + ValaSymbol* _tmp215_; + ValaSymbol* _tmp216_; + ValaSymbol* _tmp217_; + gchar* _tmp218_ = NULL; + gchar* _tmp219_; + ValaSymbol* _tmp220_; + const gchar* _tmp221_; + const gchar* _tmp222_; + gchar* _tmp223_ = NULL; + gchar* _tmp224_; + _tmp215_ = sym; + _tmp216_ = vala_symbol_get_parent_symbol (_tmp215_); + _tmp217_ = _tmp216_; + _tmp218_ = vala_ccode_base_module_get_ccode_prefix (_tmp217_); + _tmp219_ = _tmp218_; + _tmp220_ = sym; + _tmp221_ = vala_symbol_get_name (_tmp220_); + _tmp222_ = _tmp221_; + _tmp223_ = g_strdup_printf ("%s%s", _tmp219_, _tmp222_); + _tmp224_ = _tmp223_; + _g_free0 (_tmp219_); + result = _tmp224_; + _vala_code_node_unref0 (sym); + return result; + } } } } @@ -1076,145 +1102,145 @@ } } } else { - ValaCodeNode* _tmp217_; - _tmp217_ = self->priv->node; - if (VALA_IS_OBJECT_TYPE (_tmp217_)) { - ValaCodeNode* _tmp218_; - ValaObjectType* _tmp219_; + ValaCodeNode* _tmp225_; + _tmp225_ = self->priv->node; + if (VALA_IS_OBJECT_TYPE (_tmp225_)) { + ValaCodeNode* _tmp226_; + ValaObjectType* _tmp227_; ValaObjectType* type; - ValaCodeContext* _tmp220_ = NULL; - ValaCodeContext* _tmp221_; - ValaProfile _tmp222_; - ValaProfile _tmp223_; - gboolean _tmp224_; + ValaCodeContext* _tmp228_ = NULL; + ValaCodeContext* _tmp229_; + ValaProfile _tmp230_; + ValaProfile _tmp231_; + gboolean _tmp232_; gchar* cname = NULL; - ValaObjectType* _tmp232_; - gboolean _tmp233_; - gboolean _tmp234_; - const gchar* _tmp243_; - gchar* _tmp244_ = NULL; - _tmp218_ = self->priv->node; - _tmp219_ = _vala_code_node_ref0 (VALA_OBJECT_TYPE (_tmp218_)); - type = _tmp219_; - _tmp220_ = vala_code_context_get (); - _tmp221_ = _tmp220_; - _tmp222_ = vala_code_context_get_profile (_tmp221_); - _tmp223_ = _tmp222_; - _tmp224_ = _tmp223_ == VALA_PROFILE_DOVA; - _vala_code_context_unref0 (_tmp221_); - if (_tmp224_) { - ValaObjectType* _tmp225_; - ValaObjectTypeSymbol* _tmp226_; - ValaObjectTypeSymbol* _tmp227_; - gchar* _tmp228_ = NULL; - gchar* _tmp229_; - gboolean _tmp230_; - _tmp225_ = type; - _tmp226_ = vala_object_type_get_type_symbol (_tmp225_); - _tmp227_ = _tmp226_; - _tmp228_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp227_); - _tmp229_ = _tmp228_; - _tmp230_ = g_strcmp0 (_tmp229_, "string") == 0; - _g_free0 (_tmp229_); - if (_tmp230_) { - gchar* _tmp231_; - _tmp231_ = g_strdup ("string_t"); - result = _tmp231_; + ValaObjectType* _tmp240_; + gboolean _tmp241_; + gboolean _tmp242_; + const gchar* _tmp251_; + gchar* _tmp252_ = NULL; + _tmp226_ = self->priv->node; + _tmp227_ = _vala_code_node_ref0 (VALA_OBJECT_TYPE (_tmp226_)); + type = _tmp227_; + _tmp228_ = vala_code_context_get (); + _tmp229_ = _tmp228_; + _tmp230_ = vala_code_context_get_profile (_tmp229_); + _tmp231_ = _tmp230_; + _tmp232_ = _tmp231_ == VALA_PROFILE_DOVA; + _vala_code_context_unref0 (_tmp229_); + if (_tmp232_) { + ValaObjectType* _tmp233_; + ValaObjectTypeSymbol* _tmp234_; + ValaObjectTypeSymbol* _tmp235_; + gchar* _tmp236_ = NULL; + gchar* _tmp237_; + gboolean _tmp238_; + _tmp233_ = type; + _tmp234_ = vala_object_type_get_type_symbol (_tmp233_); + _tmp235_ = _tmp234_; + _tmp236_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp235_); + _tmp237_ = _tmp236_; + _tmp238_ = g_strcmp0 (_tmp237_, "string") == 0; + _g_free0 (_tmp237_); + if (_tmp238_) { + gchar* _tmp239_; + _tmp239_ = g_strdup ("string_t"); + result = _tmp239_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } } - _tmp232_ = type; - _tmp233_ = vala_data_type_get_value_owned ((ValaDataType*) _tmp232_); - _tmp234_ = _tmp233_; - if (!_tmp234_) { - ValaObjectType* _tmp235_; - ValaObjectTypeSymbol* _tmp236_; - ValaObjectTypeSymbol* _tmp237_; - gchar* _tmp238_ = NULL; - _tmp235_ = type; - _tmp236_ = vala_object_type_get_type_symbol (_tmp235_); - _tmp237_ = _tmp236_; - _tmp238_ = vala_ccode_base_module_get_ccode_const_name ((ValaCodeNode*) _tmp237_); + _tmp240_ = type; + _tmp241_ = vala_data_type_get_value_owned ((ValaDataType*) _tmp240_); + _tmp242_ = _tmp241_; + if (!_tmp242_) { + ValaObjectType* _tmp243_; + ValaObjectTypeSymbol* _tmp244_; + ValaObjectTypeSymbol* _tmp245_; + gchar* _tmp246_ = NULL; + _tmp243_ = type; + _tmp244_ = vala_object_type_get_type_symbol (_tmp243_); + _tmp245_ = _tmp244_; + _tmp246_ = vala_ccode_base_module_get_ccode_const_name ((ValaCodeNode*) _tmp245_); _g_free0 (cname); - cname = _tmp238_; + cname = _tmp246_; } else { - ValaObjectType* _tmp239_; - ValaObjectTypeSymbol* _tmp240_; - ValaObjectTypeSymbol* _tmp241_; - gchar* _tmp242_ = NULL; - _tmp239_ = type; - _tmp240_ = vala_object_type_get_type_symbol (_tmp239_); - _tmp241_ = _tmp240_; - _tmp242_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp241_); + ValaObjectType* _tmp247_; + ValaObjectTypeSymbol* _tmp248_; + ValaObjectTypeSymbol* _tmp249_; + gchar* _tmp250_ = NULL; + _tmp247_ = type; + _tmp248_ = vala_object_type_get_type_symbol (_tmp247_); + _tmp249_ = _tmp248_; + _tmp250_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp249_); _g_free0 (cname); - cname = _tmp242_; + cname = _tmp250_; } - _tmp243_ = cname; - _tmp244_ = g_strdup_printf ("%s*", _tmp243_); - result = _tmp244_; + _tmp251_ = cname; + _tmp252_ = g_strdup_printf ("%s*", _tmp251_); + result = _tmp252_; _g_free0 (cname); _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } else { - ValaCodeNode* _tmp245_; - _tmp245_ = self->priv->node; - if (VALA_IS_ARRAY_TYPE (_tmp245_)) { - ValaCodeNode* _tmp246_; - ValaArrayType* _tmp247_; + ValaCodeNode* _tmp253_; + _tmp253_ = self->priv->node; + if (VALA_IS_ARRAY_TYPE (_tmp253_)) { + ValaCodeNode* _tmp254_; + ValaArrayType* _tmp255_; ValaArrayType* type; - ValaArrayType* _tmp248_; - ValaDataType* _tmp249_; - ValaDataType* _tmp250_; - gchar* _tmp251_ = NULL; + ValaArrayType* _tmp256_; + ValaDataType* _tmp257_; + ValaDataType* _tmp258_; + gchar* _tmp259_ = NULL; gchar* cname; - ValaArrayType* _tmp252_; - gboolean _tmp253_; - gboolean _tmp254_; - _tmp246_ = self->priv->node; - _tmp247_ = _vala_code_node_ref0 (VALA_ARRAY_TYPE (_tmp246_)); - type = _tmp247_; - _tmp248_ = type; - _tmp249_ = vala_array_type_get_element_type (_tmp248_); - _tmp250_ = _tmp249_; - _tmp251_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp250_); - cname = _tmp251_; - _tmp252_ = type; - _tmp253_ = vala_array_type_get_inline_allocated (_tmp252_); - _tmp254_ = _tmp253_; - if (_tmp254_) { + ValaArrayType* _tmp260_; + gboolean _tmp261_; + gboolean _tmp262_; + _tmp254_ = self->priv->node; + _tmp255_ = _vala_code_node_ref0 (VALA_ARRAY_TYPE (_tmp254_)); + type = _tmp255_; + _tmp256_ = type; + _tmp257_ = vala_array_type_get_element_type (_tmp256_); + _tmp258_ = _tmp257_; + _tmp259_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp258_); + cname = _tmp259_; + _tmp260_ = type; + _tmp261_ = vala_array_type_get_inline_allocated (_tmp260_); + _tmp262_ = _tmp261_; + if (_tmp262_) { result = cname; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } else { - ValaCodeContext* _tmp255_ = NULL; - ValaCodeContext* _tmp256_; - ValaProfile _tmp257_; - ValaProfile _tmp258_; - gboolean _tmp259_; - _tmp255_ = vala_code_context_get (); - _tmp256_ = _tmp255_; - _tmp257_ = vala_code_context_get_profile (_tmp256_); - _tmp258_ = _tmp257_; - _tmp259_ = _tmp258_ == VALA_PROFILE_DOVA; - _vala_code_context_unref0 (_tmp256_); - if (_tmp259_) { - gchar* _tmp260_; - _tmp260_ = g_strdup ("DovaArray"); - result = _tmp260_; + ValaCodeContext* _tmp263_ = NULL; + ValaCodeContext* _tmp264_; + ValaProfile _tmp265_; + ValaProfile _tmp266_; + gboolean _tmp267_; + _tmp263_ = vala_code_context_get (); + _tmp264_ = _tmp263_; + _tmp265_ = vala_code_context_get_profile (_tmp264_); + _tmp266_ = _tmp265_; + _tmp267_ = _tmp266_ == VALA_PROFILE_DOVA; + _vala_code_context_unref0 (_tmp264_); + if (_tmp267_) { + gchar* _tmp268_; + _tmp268_ = g_strdup ("DovaArray"); + result = _tmp268_; _g_free0 (cname); _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } else { - const gchar* _tmp261_; - gchar* _tmp262_ = NULL; - _tmp261_ = cname; - _tmp262_ = g_strdup_printf ("%s*", _tmp261_); - result = _tmp262_; + const gchar* _tmp269_; + gchar* _tmp270_ = NULL; + _tmp269_ = cname; + _tmp270_ = g_strdup_printf ("%s*", _tmp269_); + result = _tmp270_; _g_free0 (cname); _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); @@ -1224,332 +1250,332 @@ _g_free0 (cname); _vala_code_node_unref0 (type); } else { - ValaCodeNode* _tmp263_; - _tmp263_ = self->priv->node; - if (VALA_IS_DELEGATE_TYPE (_tmp263_)) { - ValaCodeNode* _tmp264_; - ValaDelegateType* _tmp265_; + ValaCodeNode* _tmp271_; + _tmp271_ = self->priv->node; + if (VALA_IS_DELEGATE_TYPE (_tmp271_)) { + ValaCodeNode* _tmp272_; + ValaDelegateType* _tmp273_; ValaDelegateType* type; - ValaCodeContext* _tmp266_ = NULL; - ValaCodeContext* _tmp267_; - ValaProfile _tmp268_; - ValaProfile _tmp269_; - gboolean _tmp270_; - _tmp264_ = self->priv->node; - _tmp265_ = _vala_code_node_ref0 (VALA_DELEGATE_TYPE (_tmp264_)); - type = _tmp265_; - _tmp266_ = vala_code_context_get (); - _tmp267_ = _tmp266_; - _tmp268_ = vala_code_context_get_profile (_tmp267_); - _tmp269_ = _tmp268_; - _tmp270_ = _tmp269_ == VALA_PROFILE_DOVA; - _vala_code_context_unref0 (_tmp267_); - if (_tmp270_) { - ValaDelegateType* _tmp271_; - ValaDelegate* _tmp272_; - ValaDelegate* _tmp273_; - gchar* _tmp274_ = NULL; - gchar* _tmp275_; - gchar* _tmp276_ = NULL; - gchar* _tmp277_; - _tmp271_ = type; - _tmp272_ = vala_delegate_type_get_delegate_symbol (_tmp271_); - _tmp273_ = _tmp272_; - _tmp274_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp273_); - _tmp275_ = _tmp274_; - _tmp276_ = g_strdup_printf ("%s*", _tmp275_); - _tmp277_ = _tmp276_; - _g_free0 (_tmp275_); - result = _tmp277_; + ValaCodeContext* _tmp274_ = NULL; + ValaCodeContext* _tmp275_; + ValaProfile _tmp276_; + ValaProfile _tmp277_; + gboolean _tmp278_; + _tmp272_ = self->priv->node; + _tmp273_ = _vala_code_node_ref0 (VALA_DELEGATE_TYPE (_tmp272_)); + type = _tmp273_; + _tmp274_ = vala_code_context_get (); + _tmp275_ = _tmp274_; + _tmp276_ = vala_code_context_get_profile (_tmp275_); + _tmp277_ = _tmp276_; + _tmp278_ = _tmp277_ == VALA_PROFILE_DOVA; + _vala_code_context_unref0 (_tmp275_); + if (_tmp278_) { + ValaDelegateType* _tmp279_; + ValaDelegate* _tmp280_; + ValaDelegate* _tmp281_; + gchar* _tmp282_ = NULL; + gchar* _tmp283_; + gchar* _tmp284_ = NULL; + gchar* _tmp285_; + _tmp279_ = type; + _tmp280_ = vala_delegate_type_get_delegate_symbol (_tmp279_); + _tmp281_ = _tmp280_; + _tmp282_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp281_); + _tmp283_ = _tmp282_; + _tmp284_ = g_strdup_printf ("%s*", _tmp283_); + _tmp285_ = _tmp284_; + _g_free0 (_tmp283_); + result = _tmp285_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } else { - ValaDelegateType* _tmp278_; - ValaDelegate* _tmp279_; - ValaDelegate* _tmp280_; - gchar* _tmp281_ = NULL; - _tmp278_ = type; - _tmp279_ = vala_delegate_type_get_delegate_symbol (_tmp278_); - _tmp280_ = _tmp279_; - _tmp281_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp280_); - result = _tmp281_; + ValaDelegateType* _tmp286_; + ValaDelegate* _tmp287_; + ValaDelegate* _tmp288_; + gchar* _tmp289_ = NULL; + _tmp286_ = type; + _tmp287_ = vala_delegate_type_get_delegate_symbol (_tmp286_); + _tmp288_ = _tmp287_; + _tmp289_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp288_); + result = _tmp289_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } _vala_code_node_unref0 (type); } else { - ValaCodeNode* _tmp282_; - _tmp282_ = self->priv->node; - if (VALA_IS_ERROR_TYPE (_tmp282_)) { - gchar* _tmp283_; - _tmp283_ = g_strdup ("GError*"); - result = _tmp283_; + ValaCodeNode* _tmp290_; + _tmp290_ = self->priv->node; + if (VALA_IS_ERROR_TYPE (_tmp290_)) { + gchar* _tmp291_; + _tmp291_ = g_strdup ("GError*"); + result = _tmp291_; _vala_code_node_unref0 (sym); return result; } else { - ValaCodeNode* _tmp284_; - _tmp284_ = self->priv->node; - if (VALA_IS_GENERIC_TYPE (_tmp284_)) { - ValaCodeContext* _tmp285_ = NULL; - ValaCodeContext* _tmp286_; - ValaProfile _tmp287_; - ValaProfile _tmp288_; - gboolean _tmp289_; - _tmp285_ = vala_code_context_get (); - _tmp286_ = _tmp285_; - _tmp287_ = vala_code_context_get_profile (_tmp286_); - _tmp288_ = _tmp287_; - _tmp289_ = _tmp288_ == VALA_PROFILE_GOBJECT; - _vala_code_context_unref0 (_tmp286_); - if (_tmp289_) { - ValaCodeNode* _tmp290_; - ValaGenericType* _tmp291_; + ValaCodeNode* _tmp292_; + _tmp292_ = self->priv->node; + if (VALA_IS_GENERIC_TYPE (_tmp292_)) { + ValaCodeContext* _tmp293_ = NULL; + ValaCodeContext* _tmp294_; + ValaProfile _tmp295_; + ValaProfile _tmp296_; + gboolean _tmp297_; + _tmp293_ = vala_code_context_get (); + _tmp294_ = _tmp293_; + _tmp295_ = vala_code_context_get_profile (_tmp294_); + _tmp296_ = _tmp295_; + _tmp297_ = _tmp296_ == VALA_PROFILE_GOBJECT; + _vala_code_context_unref0 (_tmp294_); + if (_tmp297_) { + ValaCodeNode* _tmp298_; + ValaGenericType* _tmp299_; ValaGenericType* type; - ValaGenericType* _tmp292_; - gboolean _tmp293_; - gboolean _tmp294_; - _tmp290_ = self->priv->node; - _tmp291_ = _vala_code_node_ref0 (VALA_GENERIC_TYPE (_tmp290_)); - type = _tmp291_; - _tmp292_ = type; - _tmp293_ = vala_data_type_get_value_owned ((ValaDataType*) _tmp292_); - _tmp294_ = _tmp293_; - if (_tmp294_) { - gchar* _tmp295_; - _tmp295_ = g_strdup ("gpointer"); - result = _tmp295_; + ValaGenericType* _tmp300_; + gboolean _tmp301_; + gboolean _tmp302_; + _tmp298_ = self->priv->node; + _tmp299_ = _vala_code_node_ref0 (VALA_GENERIC_TYPE (_tmp298_)); + type = _tmp299_; + _tmp300_ = type; + _tmp301_ = vala_data_type_get_value_owned ((ValaDataType*) _tmp300_); + _tmp302_ = _tmp301_; + if (_tmp302_) { + gchar* _tmp303_; + _tmp303_ = g_strdup ("gpointer"); + result = _tmp303_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } else { - gchar* _tmp296_; - _tmp296_ = g_strdup ("gconstpointer"); - result = _tmp296_; + gchar* _tmp304_; + _tmp304_ = g_strdup ("gconstpointer"); + result = _tmp304_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } _vala_code_node_unref0 (type); } else { - gchar* _tmp297_; - _tmp297_ = g_strdup ("void *"); - result = _tmp297_; + gchar* _tmp305_; + _tmp305_ = g_strdup ("void *"); + result = _tmp305_; _vala_code_node_unref0 (sym); return result; } } else { - ValaCodeNode* _tmp298_; - _tmp298_ = self->priv->node; - if (VALA_IS_METHOD_TYPE (_tmp298_)) { - gchar* _tmp299_; - _tmp299_ = g_strdup ("gpointer"); - result = _tmp299_; + ValaCodeNode* _tmp306_; + _tmp306_ = self->priv->node; + if (VALA_IS_METHOD_TYPE (_tmp306_)) { + gchar* _tmp307_; + _tmp307_ = g_strdup ("gpointer"); + result = _tmp307_; _vala_code_node_unref0 (sym); return result; } else { - ValaCodeNode* _tmp300_; - _tmp300_ = self->priv->node; - if (VALA_IS_NULL_TYPE (_tmp300_)) { - ValaCodeContext* _tmp301_ = NULL; - ValaCodeContext* _tmp302_; - ValaProfile _tmp303_; - ValaProfile _tmp304_; - gboolean _tmp305_; - _tmp301_ = vala_code_context_get (); - _tmp302_ = _tmp301_; - _tmp303_ = vala_code_context_get_profile (_tmp302_); - _tmp304_ = _tmp303_; - _tmp305_ = _tmp304_ == VALA_PROFILE_GOBJECT; - _vala_code_context_unref0 (_tmp302_); - if (_tmp305_) { - gchar* _tmp306_; - _tmp306_ = g_strdup ("gpointer"); - result = _tmp306_; + ValaCodeNode* _tmp308_; + _tmp308_ = self->priv->node; + if (VALA_IS_NULL_TYPE (_tmp308_)) { + ValaCodeContext* _tmp309_ = NULL; + ValaCodeContext* _tmp310_; + ValaProfile _tmp311_; + ValaProfile _tmp312_; + gboolean _tmp313_; + _tmp309_ = vala_code_context_get (); + _tmp310_ = _tmp309_; + _tmp311_ = vala_code_context_get_profile (_tmp310_); + _tmp312_ = _tmp311_; + _tmp313_ = _tmp312_ == VALA_PROFILE_GOBJECT; + _vala_code_context_unref0 (_tmp310_); + if (_tmp313_) { + gchar* _tmp314_; + _tmp314_ = g_strdup ("gpointer"); + result = _tmp314_; _vala_code_node_unref0 (sym); return result; } else { - gchar* _tmp307_; - _tmp307_ = g_strdup ("void *"); - result = _tmp307_; + gchar* _tmp315_; + _tmp315_ = g_strdup ("void *"); + result = _tmp315_; _vala_code_node_unref0 (sym); return result; } } else { - ValaCodeNode* _tmp308_; - _tmp308_ = self->priv->node; - if (VALA_IS_POINTER_TYPE (_tmp308_)) { - ValaCodeNode* _tmp309_; - ValaPointerType* _tmp310_; + ValaCodeNode* _tmp316_; + _tmp316_ = self->priv->node; + if (VALA_IS_POINTER_TYPE (_tmp316_)) { + ValaCodeNode* _tmp317_; + ValaPointerType* _tmp318_; ValaPointerType* type; - gboolean _tmp311_ = FALSE; - ValaPointerType* _tmp312_; - ValaDataType* _tmp313_; - ValaDataType* _tmp314_; - ValaTypeSymbol* _tmp315_; - ValaTypeSymbol* _tmp316_; - gboolean _tmp323_; - _tmp309_ = self->priv->node; - _tmp310_ = _vala_code_node_ref0 (VALA_POINTER_TYPE (_tmp309_)); - type = _tmp310_; - _tmp312_ = type; - _tmp313_ = vala_pointer_type_get_base_type (_tmp312_); - _tmp314_ = _tmp313_; - _tmp315_ = vala_data_type_get_data_type (_tmp314_); - _tmp316_ = _tmp315_; - if (_tmp316_ != NULL) { - ValaPointerType* _tmp317_; - ValaDataType* _tmp318_; - ValaDataType* _tmp319_; - ValaTypeSymbol* _tmp320_; - ValaTypeSymbol* _tmp321_; - gboolean _tmp322_ = FALSE; - _tmp317_ = type; - _tmp318_ = vala_pointer_type_get_base_type (_tmp317_); - _tmp319_ = _tmp318_; - _tmp320_ = vala_data_type_get_data_type (_tmp319_); - _tmp321_ = _tmp320_; - _tmp322_ = vala_typesymbol_is_reference_type (_tmp321_); - _tmp311_ = _tmp322_; + gboolean _tmp319_ = FALSE; + ValaPointerType* _tmp320_; + ValaDataType* _tmp321_; + ValaDataType* _tmp322_; + ValaTypeSymbol* _tmp323_; + ValaTypeSymbol* _tmp324_; + gboolean _tmp331_; + _tmp317_ = self->priv->node; + _tmp318_ = _vala_code_node_ref0 (VALA_POINTER_TYPE (_tmp317_)); + type = _tmp318_; + _tmp320_ = type; + _tmp321_ = vala_pointer_type_get_base_type (_tmp320_); + _tmp322_ = _tmp321_; + _tmp323_ = vala_data_type_get_data_type (_tmp322_); + _tmp324_ = _tmp323_; + if (_tmp324_ != NULL) { + ValaPointerType* _tmp325_; + ValaDataType* _tmp326_; + ValaDataType* _tmp327_; + ValaTypeSymbol* _tmp328_; + ValaTypeSymbol* _tmp329_; + gboolean _tmp330_ = FALSE; + _tmp325_ = type; + _tmp326_ = vala_pointer_type_get_base_type (_tmp325_); + _tmp327_ = _tmp326_; + _tmp328_ = vala_data_type_get_data_type (_tmp327_); + _tmp329_ = _tmp328_; + _tmp330_ = vala_typesymbol_is_reference_type (_tmp329_); + _tmp319_ = _tmp330_; } else { - _tmp311_ = FALSE; + _tmp319_ = FALSE; } - _tmp323_ = _tmp311_; - if (_tmp323_) { - ValaPointerType* _tmp324_; - ValaDataType* _tmp325_; - ValaDataType* _tmp326_; - gchar* _tmp327_ = NULL; - _tmp324_ = type; - _tmp325_ = vala_pointer_type_get_base_type (_tmp324_); - _tmp326_ = _tmp325_; - _tmp327_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp326_); - result = _tmp327_; + _tmp331_ = _tmp319_; + if (_tmp331_) { + ValaPointerType* _tmp332_; + ValaDataType* _tmp333_; + ValaDataType* _tmp334_; + gchar* _tmp335_ = NULL; + _tmp332_ = type; + _tmp333_ = vala_pointer_type_get_base_type (_tmp332_); + _tmp334_ = _tmp333_; + _tmp335_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp334_); + result = _tmp335_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } else { - ValaPointerType* _tmp328_; - ValaDataType* _tmp329_; - ValaDataType* _tmp330_; - gchar* _tmp331_ = NULL; - gchar* _tmp332_; - gchar* _tmp333_ = NULL; - gchar* _tmp334_; - _tmp328_ = type; - _tmp329_ = vala_pointer_type_get_base_type (_tmp328_); - _tmp330_ = _tmp329_; - _tmp331_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp330_); - _tmp332_ = _tmp331_; - _tmp333_ = g_strdup_printf ("%s*", _tmp332_); - _tmp334_ = _tmp333_; - _g_free0 (_tmp332_); - result = _tmp334_; + ValaPointerType* _tmp336_; + ValaDataType* _tmp337_; + ValaDataType* _tmp338_; + gchar* _tmp339_ = NULL; + gchar* _tmp340_; + gchar* _tmp341_ = NULL; + gchar* _tmp342_; + _tmp336_ = type; + _tmp337_ = vala_pointer_type_get_base_type (_tmp336_); + _tmp338_ = _tmp337_; + _tmp339_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp338_); + _tmp340_ = _tmp339_; + _tmp341_ = g_strdup_printf ("%s*", _tmp340_); + _tmp342_ = _tmp341_; + _g_free0 (_tmp340_); + result = _tmp342_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } _vala_code_node_unref0 (type); } else { - ValaCodeNode* _tmp335_; - _tmp335_ = self->priv->node; - if (VALA_IS_VOID_TYPE (_tmp335_)) { - gchar* _tmp336_; - _tmp336_ = g_strdup ("void"); - result = _tmp336_; + ValaCodeNode* _tmp343_; + _tmp343_ = self->priv->node; + if (VALA_IS_VOID_TYPE (_tmp343_)) { + gchar* _tmp344_; + _tmp344_ = g_strdup ("void"); + result = _tmp344_; _vala_code_node_unref0 (sym); return result; } else { - ValaCodeNode* _tmp337_; - _tmp337_ = self->priv->node; - if (VALA_IS_CLASS_TYPE (_tmp337_)) { - ValaCodeNode* _tmp338_; - ValaClassType* _tmp339_; + ValaCodeNode* _tmp345_; + _tmp345_ = self->priv->node; + if (VALA_IS_CLASS_TYPE (_tmp345_)) { + ValaCodeNode* _tmp346_; + ValaClassType* _tmp347_; ValaClassType* type; - ValaClassType* _tmp340_; - ValaClass* _tmp341_; - ValaClass* _tmp342_; - gchar* _tmp343_ = NULL; - gchar* _tmp344_; - gchar* _tmp345_ = NULL; - gchar* _tmp346_; - _tmp338_ = self->priv->node; - _tmp339_ = _vala_code_node_ref0 (VALA_CLASS_TYPE (_tmp338_)); - type = _tmp339_; - _tmp340_ = type; - _tmp341_ = vala_class_type_get_class_symbol (_tmp340_); - _tmp342_ = _tmp341_; - _tmp343_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp342_); - _tmp344_ = _tmp343_; - _tmp345_ = g_strdup_printf ("%sClass*", _tmp344_); - _tmp346_ = _tmp345_; - _g_free0 (_tmp344_); - result = _tmp346_; + ValaClassType* _tmp348_; + ValaClass* _tmp349_; + ValaClass* _tmp350_; + gchar* _tmp351_ = NULL; + gchar* _tmp352_; + gchar* _tmp353_ = NULL; + gchar* _tmp354_; + _tmp346_ = self->priv->node; + _tmp347_ = _vala_code_node_ref0 (VALA_CLASS_TYPE (_tmp346_)); + type = _tmp347_; + _tmp348_ = type; + _tmp349_ = vala_class_type_get_class_symbol (_tmp348_); + _tmp350_ = _tmp349_; + _tmp351_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp350_); + _tmp352_ = _tmp351_; + _tmp353_ = g_strdup_printf ("%sClass*", _tmp352_); + _tmp354_ = _tmp353_; + _g_free0 (_tmp352_); + result = _tmp354_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } else { - ValaCodeNode* _tmp347_; - _tmp347_ = self->priv->node; - if (VALA_IS_INTERFACE_TYPE (_tmp347_)) { - ValaCodeNode* _tmp348_; - ValaInterfaceType* _tmp349_; + ValaCodeNode* _tmp355_; + _tmp355_ = self->priv->node; + if (VALA_IS_INTERFACE_TYPE (_tmp355_)) { + ValaCodeNode* _tmp356_; + ValaInterfaceType* _tmp357_; ValaInterfaceType* type; - ValaInterfaceType* _tmp350_; - ValaInterface* _tmp351_; - ValaInterface* _tmp352_; - gchar* _tmp353_ = NULL; - gchar* _tmp354_; - gchar* _tmp355_ = NULL; - gchar* _tmp356_; - _tmp348_ = self->priv->node; - _tmp349_ = _vala_code_node_ref0 (VALA_INTERFACE_TYPE (_tmp348_)); - type = _tmp349_; - _tmp350_ = type; - _tmp351_ = vala_interface_type_get_interface_symbol (_tmp350_); - _tmp352_ = _tmp351_; - _tmp353_ = vala_ccode_base_module_get_ccode_type_name (_tmp352_); - _tmp354_ = _tmp353_; - _tmp355_ = g_strdup_printf ("%s*", _tmp354_); - _tmp356_ = _tmp355_; - _g_free0 (_tmp354_); - result = _tmp356_; + ValaInterfaceType* _tmp358_; + ValaInterface* _tmp359_; + ValaInterface* _tmp360_; + gchar* _tmp361_ = NULL; + gchar* _tmp362_; + gchar* _tmp363_ = NULL; + gchar* _tmp364_; + _tmp356_ = self->priv->node; + _tmp357_ = _vala_code_node_ref0 (VALA_INTERFACE_TYPE (_tmp356_)); + type = _tmp357_; + _tmp358_ = type; + _tmp359_ = vala_interface_type_get_interface_symbol (_tmp358_); + _tmp360_ = _tmp359_; + _tmp361_ = vala_ccode_base_module_get_ccode_type_name (_tmp360_); + _tmp362_ = _tmp361_; + _tmp363_ = g_strdup_printf ("%s*", _tmp362_); + _tmp364_ = _tmp363_; + _g_free0 (_tmp362_); + result = _tmp364_; _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); return result; } else { - ValaCodeNode* _tmp357_; - _tmp357_ = self->priv->node; - if (VALA_IS_VALUE_TYPE (_tmp357_)) { - ValaCodeNode* _tmp358_; - ValaValueType* _tmp359_; + ValaCodeNode* _tmp365_; + _tmp365_ = self->priv->node; + if (VALA_IS_VALUE_TYPE (_tmp365_)) { + ValaCodeNode* _tmp366_; + ValaValueType* _tmp367_; ValaValueType* type; - ValaValueType* _tmp360_; - ValaTypeSymbol* _tmp361_; - ValaTypeSymbol* _tmp362_; - gchar* _tmp363_ = NULL; + ValaValueType* _tmp368_; + ValaTypeSymbol* _tmp369_; + ValaTypeSymbol* _tmp370_; + gchar* _tmp371_ = NULL; gchar* cname; - ValaValueType* _tmp364_; - gboolean _tmp365_; - gboolean _tmp366_; - _tmp358_ = self->priv->node; - _tmp359_ = _vala_code_node_ref0 (VALA_VALUE_TYPE (_tmp358_)); - type = _tmp359_; - _tmp360_ = type; - _tmp361_ = vala_value_type_get_type_symbol (_tmp360_); - _tmp362_ = _tmp361_; - _tmp363_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp362_); - cname = _tmp363_; - _tmp364_ = type; - _tmp365_ = vala_data_type_get_nullable ((ValaDataType*) _tmp364_); - _tmp366_ = _tmp365_; - if (_tmp366_) { - const gchar* _tmp367_; - gchar* _tmp368_ = NULL; - _tmp367_ = cname; - _tmp368_ = g_strdup_printf ("%s*", _tmp367_); - result = _tmp368_; + ValaValueType* _tmp372_; + gboolean _tmp373_; + gboolean _tmp374_; + _tmp366_ = self->priv->node; + _tmp367_ = _vala_code_node_ref0 (VALA_VALUE_TYPE (_tmp366_)); + type = _tmp367_; + _tmp368_ = type; + _tmp369_ = vala_value_type_get_type_symbol (_tmp368_); + _tmp370_ = _tmp369_; + _tmp371_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp370_); + cname = _tmp371_; + _tmp372_ = type; + _tmp373_ = vala_data_type_get_nullable ((ValaDataType*) _tmp372_); + _tmp374_ = _tmp373_; + if (_tmp374_) { + const gchar* _tmp375_; + gchar* _tmp376_ = NULL; + _tmp375_ = cname; + _tmp376_ = g_strdup_printf ("%s*", _tmp375_); + result = _tmp376_; _g_free0 (cname); _vala_code_node_unref0 (type); _vala_code_node_unref0 (sym); @@ -1563,31 +1589,31 @@ _g_free0 (cname); _vala_code_node_unref0 (type); } else { - ValaCodeNode* _tmp369_; - _tmp369_ = self->priv->node; - if (VALA_IS_CTYPE (_tmp369_)) { - ValaCodeNode* _tmp370_; - const gchar* _tmp371_; - const gchar* _tmp372_; - gchar* _tmp373_; - _tmp370_ = self->priv->node; - _tmp371_ = vala_ctype_get_ctype_name (VALA_CTYPE (_tmp370_)); - _tmp372_ = _tmp371_; - _tmp373_ = g_strdup (_tmp372_); - result = _tmp373_; + ValaCodeNode* _tmp377_; + _tmp377_ = self->priv->node; + if (VALA_IS_CTYPE (_tmp377_)) { + ValaCodeNode* _tmp378_; + const gchar* _tmp379_; + const gchar* _tmp380_; + gchar* _tmp381_; + _tmp378_ = self->priv->node; + _tmp379_ = vala_ctype_get_ctype_name (VALA_CTYPE (_tmp378_)); + _tmp380_ = _tmp379_; + _tmp381_ = g_strdup (_tmp380_); + result = _tmp381_; _vala_code_node_unref0 (sym); return result; } else { - ValaCodeNode* _tmp374_; - ValaSourceReference* _tmp375_; - ValaSourceReference* _tmp376_; - gchar* _tmp377_; - _tmp374_ = self->priv->node; - _tmp375_ = vala_code_node_get_source_reference (_tmp374_); - _tmp376_ = _tmp375_; - vala_report_error (_tmp376_, "Unresolved type reference"); - _tmp377_ = g_strdup (""); - result = _tmp377_; + ValaCodeNode* _tmp382_; + ValaSourceReference* _tmp383_; + ValaSourceReference* _tmp384_; + gchar* _tmp385_; + _tmp382_ = self->priv->node; + _tmp383_ = vala_code_node_get_source_reference (_tmp382_); + _tmp384_ = _tmp383_; + vala_report_error (_tmp384_, "Unresolved type reference"); + _tmp385_ = g_strdup (""); + result = _tmp385_; _vala_code_node_unref0 (sym); return result; } @@ -6026,7 +6052,7 @@ const gchar* vala_ccode_attribute_get_delegate_target_name (ValaCCodeAttribute* self) { const gchar* result; const gchar* _tmp0_; - const gchar* _tmp9_; + const gchar* _tmp8_; g_return_val_if_fail (self != NULL, NULL); _tmp0_ = self->priv->_delegate_target_name; if (_tmp0_ == NULL) { @@ -6043,20 +6069,18 @@ } _tmp4_ = self->priv->_delegate_target_name; if (_tmp4_ == NULL) { - ValaSymbol* _tmp5_; + const gchar* _tmp5_; const gchar* _tmp6_; - const gchar* _tmp7_; - gchar* _tmp8_ = NULL; - _tmp5_ = self->priv->sym; - _tmp6_ = vala_symbol_get_name (_tmp5_); - _tmp7_ = _tmp6_; - _tmp8_ = g_strdup_printf ("%s_target", _tmp7_); + gchar* _tmp7_ = NULL; + _tmp5_ = vala_ccode_attribute_get_name (self); + _tmp6_ = _tmp5_; + _tmp7_ = g_strdup_printf ("%s_target", _tmp6_); _g_free0 (self->priv->_delegate_target_name); - self->priv->_delegate_target_name = _tmp8_; + self->priv->_delegate_target_name = _tmp7_; } } - _tmp9_ = self->priv->_delegate_target_name; - result = _tmp9_; + _tmp8_ = self->priv->_delegate_target_name; + result = _tmp8_; return result; } diff -Nru vala-0.16-0.15.2/codegen/valaccodeattribute.vala vala-0.16-0.16.0/codegen/valaccodeattribute.vala --- vala-0.16-0.15.2/codegen/valaccodeattribute.vala 2012-02-23 14:49:44.000000000 +0000 +++ vala-0.16-0.16.0/codegen/valaccodeattribute.vala 2012-03-21 16:28:31.000000000 +0000 @@ -461,7 +461,7 @@ _delegate_target_name = ccode.get_string ("delegate_target_cname"); } if (_delegate_target_name == null) { - _delegate_target_name = "%s_target".printf (sym.name); + _delegate_target_name = "%s_target".printf (name); } } return _delegate_target_name; @@ -610,6 +610,8 @@ } else { return "%s%s".printf (CCodeBaseModule.get_ccode_prefix (sym.parent_symbol), sym.name); } + } else if (sym is LocalVariable || sym is Parameter) { + return sym.name; } else { return "%s%s".printf (CCodeBaseModule.get_ccode_prefix (sym.parent_symbol), sym.name); } diff -Nru vala-0.16-0.15.2/configure vala-0.16-0.16.0/configure --- vala-0.16-0.15.2/configure 2012-02-25 16:17:42.000000000 +0000 +++ vala-0.16-0.16.0/configure 2012-03-26 16:26:29.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for vala 0.15.2. +# Generated by GNU Autoconf 2.68 for vala 0.16.0. # # Report bugs to . # @@ -569,8 +569,8 @@ # Identity of this package. PACKAGE_NAME='vala' PACKAGE_TARNAME='vala' -PACKAGE_VERSION='0.15.2' -PACKAGE_STRING='vala 0.15.2' +PACKAGE_VERSION='0.16.0' +PACKAGE_STRING='vala 0.16.0' PACKAGE_BUGREPORT='j@bitron.ch' PACKAGE_URL='' @@ -1339,7 +1339,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures vala 0.15.2 to adapt to many kinds of systems. +\`configure' configures vala 0.16.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1409,7 +1409,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of vala 0.15.2:";; + short | recursive ) echo "Configuration of vala 0.16.0:";; esac cat <<\_ACEOF @@ -1532,7 +1532,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -vala configure 0.15.2 +vala configure 0.16.0 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1810,7 +1810,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by vala $as_me 0.15.2, which was +It was created by vala $as_me 0.16.0, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2629,7 +2629,7 @@ # Define the identity of the package. PACKAGE='vala' - VERSION='0.15.2' + VERSION='0.16.0' cat >>confdefs.h <<_ACEOF @@ -12796,7 +12796,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by vala $as_me 0.15.2, which was +This file was extended by vala $as_me 0.16.0, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -12862,7 +12862,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -vala config.status 0.15.2 +vala config.status 0.16.0 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" diff -Nru vala-0.16-0.15.2/debian/changelog vala-0.16-0.16.0/debian/changelog --- vala-0.16-0.15.2/debian/changelog 2012-03-22 19:38:57.000000000 +0000 +++ vala-0.16-0.16.0/debian/changelog 2012-03-29 04:20:07.000000000 +0000 @@ -1,3 +1,17 @@ +vala-0.16 (0.16.0-1ubuntu1) precise-proposed; urgency=low + + * Merged with Debian, remaining changes: + - debian/control: Add Breaks:/Replaces to older vala-0.16 Ubuntu versions + which previously shipped the vapi files. (LP: #961740) + + -- Robert Ancell Thu, 29 Mar 2012 15:12:32 +1100 + +vala-0.16 (0.16.0-1) unstable; urgency=low + + * New upstream release + + -- Sebastian Reichel Tue, 27 Mar 2012 23:35:11 +0200 + vala-0.16 (0.15.2-1ubuntu1) precise; urgency=low * debian/control: Add Breaks:/Replaces to older vala-0.16 Ubuntu versions diff -Nru vala-0.16-0.15.2/NEWS vala-0.16-0.16.0/NEWS --- vala-0.16-0.15.2/NEWS 2012-02-25 16:14:37.000000000 +0000 +++ vala-0.16-0.16.0/NEWS 2012-03-26 16:23:52.000000000 +0000 @@ -1,3 +1,9 @@ +Vala 0.16.0 +=========== + + * Add udisks2 bindings. + * Bug fixes and binding updates. + Vala 0.15.2 =========== diff -Nru vala-0.16-0.15.2/.tarball-version vala-0.16-0.16.0/.tarball-version --- vala-0.16-0.15.2/.tarball-version 2012-02-25 16:30:24.000000000 +0000 +++ vala-0.16-0.16.0/.tarball-version 2012-03-26 16:29:41.000000000 +0000 @@ -1 +1 @@ -0.15.2 +0.16.0 diff -Nru vala-0.16-0.15.2/vapi/gio-2.0.vapi vala-0.16-0.16.0/vapi/gio-2.0.vapi --- vala-0.16-0.15.2/vapi/gio-2.0.vapi 2012-02-23 14:49:44.000000000 +0000 +++ vala-0.16-0.16.0/vapi/gio-2.0.vapi 2012-03-09 22:01:35.000000000 +0000 @@ -1975,7 +1975,7 @@ public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object); } [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_certificate_get_type ()")] - public abstract class TlsCertificate : GLib.Object { + public class TlsCertificate : GLib.Object { [CCode (has_construct_function = false)] protected TlsCertificate (); [CCode (has_construct_function = false)] diff -Nru vala-0.16-0.15.2/vapi/glib-2.0.vapi vala-0.16-0.16.0/vapi/glib-2.0.vapi --- vala-0.16-0.15.2/vapi/glib-2.0.vapi 2012-02-23 14:49:44.000000000 +0000 +++ vala-0.16-0.16.0/vapi/glib-2.0.vapi 2012-03-26 16:18:08.000000000 +0000 @@ -1824,9 +1824,11 @@ [CCode (ref_function = "g_thread_ref", unref_function = "g_thread_unref")] #endif public class Thread { +#if GLIB_2_32 public Thread (string? name, ThreadFunc func); [CCode (cname = "g_thread_try_new")] public Thread.try (string? name, ThreadFunc func) throws GLib.Error; +#endif public static bool supported (); [Deprecated (since = "2.32", replacement = "new Thread ()")] [CCode (simple_generics = true)] @@ -1961,7 +1963,7 @@ public static int get_max_unused_threads (); public static uint get_num_unused_threads (); public static void stop_unused_threads (); - public void set_sort_function (CompareDataFunc func); + public void set_sort_function (CompareDataFunc func); public static void set_max_idle_time (uint interval); public static uint get_max_idle_time (); } @@ -3222,6 +3224,8 @@ public static int create_with_parents (string pathname, int mode); [CCode (cname = "mkdtemp")] public static unowned string mkdtemp (string template); + [CCode (cname = "g_dir_make_tmp")] + public static string make_tmp (string tmpl) throws FileError; [CCode (cname = "g_rmdir")] public static int remove (string filename); } @@ -3466,7 +3470,8 @@ [CCode (cprefix = "G_MARKUP_", has_type_id = false)] public enum MarkupParseFlags { - TREAT_CDATA_AS_TEXT + TREAT_CDATA_AS_TEXT, + PREFIX_ERROR_POSITION } [Compact] @@ -3480,6 +3485,7 @@ public void get_position (out int line_number, out int char_number); public void push (MarkupParser parser, void* user_data); public void* pop (); + public void* get_user_data (); } public delegate void MarkupParserStartElementFunc (MarkupParseContext context, string element_name, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_names, [CCode (array_length = false, array_null_terminated = true)] string[] attribute_values) throws MarkupError; diff -Nru vala-0.16-0.15.2/vapi/gtk+-2.0.vapi vala-0.16-0.16.0/vapi/gtk+-2.0.vapi --- vala-0.16-0.15.2/vapi/gtk+-2.0.vapi 2012-02-09 18:32:59.000000000 +0000 +++ vala-0.16-0.16.0/vapi/gtk+-2.0.vapi 2012-03-09 22:01:35.000000000 +0000 @@ -1320,7 +1320,7 @@ public static unowned GLib.ParamSpec class_list_child_properties (GLib.ObjectClass cclass, uint n_properties); [NoWrapper] public virtual unowned string composite_name (Gtk.Widget child); - public virtual void forall (Gtk.Callback callback); + public void forall (Gtk.Callback callback); [CCode (vfunc_name = "forall")] public virtual void forall_internal (bool include_internal, Gtk.Callback callback); public void @foreach (Gtk.Callback callback); diff -Nru vala-0.16-0.15.2/vapi/gtk+-3.0.vapi vala-0.16-0.16.0/vapi/gtk+-3.0.vapi --- vala-0.16-0.15.2/vapi/gtk+-3.0.vapi 2012-02-25 16:12:32.000000000 +0000 +++ vala-0.16-0.16.0/vapi/gtk+-3.0.vapi 2012-03-09 22:01:35.000000000 +0000 @@ -1331,7 +1331,7 @@ public ColorButton (); public uint16 get_alpha (); public void get_color (out Gdk.Color color); - public void get_rgba (Gdk.RGBA rgba); + public Gdk.RGBA get_rgba (); public unowned string get_title (); public bool get_use_alpha (); public void set_alpha (uint16 alpha); @@ -1503,7 +1503,7 @@ public static unowned GLib.ParamSpec class_list_child_properties (GLib.ObjectClass cclass, uint n_properties); [NoWrapper] public virtual unowned string composite_name (Gtk.Widget child); - public virtual void forall (Gtk.Callback callback); + public void forall (Gtk.Callback callback); [CCode (vfunc_name = "forall")] [NoWrapper] public virtual void forall_internal (bool include_internal, Gtk.Callback callback); diff -Nru vala-0.16-0.15.2/vapi/Makefile.am vala-0.16-0.16.0/vapi/Makefile.am --- vala-0.16-0.15.2/vapi/Makefile.am 2012-02-09 18:32:59.000000000 +0000 +++ vala-0.16-0.16.0/vapi/Makefile.am 2012-03-09 22:03:28.000000000 +0000 @@ -229,6 +229,8 @@ tracker-indexer-module-1.0.vapi \ twitter-glib-1.0.deps \ twitter-glib-1.0.vapi \ + udisks2.deps \ + udisks2.vapi \ unique-1.0.deps \ unique-1.0.vapi \ v4l2.vapi \ @@ -335,6 +337,7 @@ pangocairo \ poppler-glib \ rest-0.7 \ + udisks2 \ vte-2.90 \ $(NULL) @@ -599,6 +602,9 @@ twitter-glib-1.0: $(GENVAPI) --library $(srcdir)/twitter-glib-1.0 $(PACKAGESDIR)/twitter-glib-1.0/twitter-glib-1.0.gi +udisks2: + $(GENVAPI) --library $(srcdir)/udisks2 --metadatadir $(METADATADIR) --pkg gio-2.0 $(GIRDIR)/UDisks-2.0.gir + unique-1.0: $(GENVAPI) --library $(srcdir)/unique-1.0 $(PACKAGESDIR)/unique-1.0/unique-1.0.gi diff -Nru vala-0.16-0.15.2/vapi/Makefile.in vala-0.16-0.16.0/vapi/Makefile.in --- vala-0.16-0.15.2/vapi/Makefile.in 2012-02-25 16:17:43.000000000 +0000 +++ vala-0.16-0.16.0/vapi/Makefile.in 2012-03-26 16:26:30.000000000 +0000 @@ -450,6 +450,8 @@ tracker-indexer-module-1.0.vapi \ twitter-glib-1.0.deps \ twitter-glib-1.0.vapi \ + udisks2.deps \ + udisks2.vapi \ unique-1.0.deps \ unique-1.0.vapi \ v4l2.vapi \ @@ -556,6 +558,7 @@ pangocairo \ poppler-glib \ rest-0.7 \ + udisks2 \ vte-2.90 \ $(NULL) @@ -1033,6 +1036,9 @@ twitter-glib-1.0: $(GENVAPI) --library $(srcdir)/twitter-glib-1.0 $(PACKAGESDIR)/twitter-glib-1.0/twitter-glib-1.0.gi +udisks2: + $(GENVAPI) --library $(srcdir)/udisks2 --metadatadir $(METADATADIR) --pkg gio-2.0 $(GIRDIR)/UDisks-2.0.gir + unique-1.0: $(GENVAPI) --library $(srcdir)/unique-1.0 $(PACKAGESDIR)/unique-1.0/unique-1.0.gi diff -Nru vala-0.16-0.15.2/vapi/posix.vapi vala-0.16-0.16.0/vapi/posix.vapi --- vala-0.16-0.15.2/vapi/posix.vapi 2012-02-23 14:49:44.000000000 +0000 +++ vala-0.16-0.16.0/vapi/posix.vapi 2012-03-09 22:01:35.000000000 +0000 @@ -1194,7 +1194,7 @@ [CCode (cheader_filename = "string.h")] public unowned string strcat (string s1, string s2); [CCode (cheader_filename = "string.h")] - public unowned string strchr (string s, int c); + public unowned string? strchr (string s, int c); [CCode (cheader_filename = "string.h")] public int strcmp (string s1, string s2); [CCode (cheader_filename = "string.h")] @@ -1204,7 +1204,7 @@ [CCode (cheader_filename = "string.h")] public size_t strcspn (string s1, string s2); [CCode (cheader_filename = "string.h")] - public unowned string strdup (string s1); + public string strdup (string s1); [CCode (cheader_filename = "string.h")] public unowned string strerror (int errnum); [CCode (cheader_filename = "string.h")] @@ -1218,17 +1218,17 @@ [CCode (cheader_filename = "string.h")] public unowned string strncpy (string s1, string s2, size_t n); [CCode (cheader_filename = "string.h")] - public unowned string strpbrk (string s1, string s2); + public unowned string? strpbrk (string s1, string s2); [CCode (cheader_filename = "string.h")] - public unowned string strrchr (string s, int c); + public unowned string? strrchr (string s, int c); [CCode (cheader_filename = "string.h")] public size_t strspn (string s1, string s2); [CCode (cheader_filename = "string.h")] - public unowned string strstr (string s1, string s2); + public unowned string? strstr (string s1, string s2); [CCode (cheader_filename = "string.h")] - public unowned string strtok (string s1, string s2); + public unowned string? strtok (string s1, string s2); [CCode (cheader_filename = "string.h")] - public unowned string strtok_r (string s, string sep, out string lasts); + public unowned string? strtok_r (string? s, string sep, out unowned string lasts); [CCode (cheader_filename = "string.h")] public size_t strxfrm (string s1, string s2, size_t n); diff -Nru vala-0.16-0.15.2/vapi/udisks2.deps vala-0.16-0.16.0/vapi/udisks2.deps --- vala-0.16-0.15.2/vapi/udisks2.deps 1970-01-01 00:00:00.000000000 +0000 +++ vala-0.16-0.16.0/vapi/udisks2.deps 2012-03-09 22:04:46.000000000 +0000 @@ -0,0 +1 @@ +gio-2.0 diff -Nru vala-0.16-0.15.2/vapi/udisks2.vapi vala-0.16-0.16.0/vapi/udisks2.vapi --- vala-0.16-0.15.2/vapi/udisks2.vapi 1970-01-01 00:00:00.000000000 +0000 +++ vala-0.16-0.16.0/vapi/udisks2.vapi 2012-03-09 22:03:43.000000000 +0000 @@ -0,0 +1,740 @@ +/* udisks2.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "UDisks", gir_namespace = "UDisks", gir_version = "2.0", lower_case_cprefix = "udisks_")] +namespace UDisks { + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_block_proxy_get_type ()")] + public class BlockProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Block { + [CCode (cname = "udisks_block_proxy_new")] + public async BlockProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksBlock*")] + public BlockProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_block_proxy_new_for_bus")] + public async BlockProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksBlock*")] + public BlockProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksBlock*")] + public BlockProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksBlock*")] + public BlockProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_block_skeleton_get_type ()")] + public class BlockSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Block { + [CCode (has_construct_function = false, type = "UDisksBlock*")] + public BlockSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_client_get_type ()")] + public class Client : GLib.Object, GLib.AsyncInitable, GLib.Initable { + [CCode (cname = "udisks_client_new")] + public async Client (GLib.Cancellable? cancellable); + [CCode (has_construct_function = false)] + public Client.finish (GLib.AsyncResult res) throws GLib.Error; + public UDisks.Block get_block_for_dev (int block_device_number); + public UDisks.Block get_block_for_drive (UDisks.Drive drive, bool get_physical); + public GLib.List get_block_for_label (string label); + public GLib.List get_block_for_uuid (string uuid); + public UDisks.Block get_cleartext_block (UDisks.Block block); + public UDisks.Drive get_drive_for_block (UDisks.Block block); + public void get_drive_info (UDisks.Drive drive, out string out_name, out string out_description, out GLib.Icon out_drive_icon, out string out_media_description, out GLib.Icon out_media_icon); + public string get_id_for_display (string usage, string type, string version, bool long_string); + public GLib.List get_jobs_for_object (UDisks.Object object); + public unowned UDisks.Manager get_manager (); + public string get_media_compat_for_display (string media_compat); + public UDisks.Object get_object (string object_path); + public unowned GLib.DBusObjectManager get_object_manager (); + public string get_partition_info (UDisks.Partition partition); + public UDisks.PartitionTable get_partition_table (UDisks.Partition partition); + public unowned string get_partition_table_subtype_for_display (string partition_table_type, string partition_table_subtype); + [CCode (array_length = false, array_null_terminated = true)] + public string[] get_partition_table_subtypes (string partition_table_type); + public unowned string get_partition_table_type_for_display (string partition_table_type); + public unowned string get_partition_type_for_display (string partition_table_type, string partition_type); + public GLib.List get_partition_type_infos (string partition_table_type, string? partition_table_subtype); + public GLib.List get_partitions (UDisks.PartitionTable table); + public string get_size_for_display (uint64 size, bool use_pow2, bool long_string); + public unowned UDisks.Object peek_object (string object_path); + public void settle (); + [CCode (has_construct_function = false)] + public Client.sync (GLib.Cancellable? cancellable) throws GLib.Error; + public UDisks.Manager manager { get; } + public GLib.DBusObjectManager object_manager { get; } + public signal void changed (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_drive_ata_proxy_get_type ()")] + public class DriveAtaProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.DriveAta { + [CCode (cname = "udisks_drive_ata_proxy_new")] + public async DriveAtaProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksDriveAta*")] + public DriveAtaProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_drive_ata_proxy_new_for_bus")] + public async DriveAtaProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksDriveAta*")] + public DriveAtaProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksDriveAta*")] + public DriveAtaProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksDriveAta*")] + public DriveAtaProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_drive_ata_skeleton_get_type ()")] + public class DriveAtaSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.DriveAta { + [CCode (has_construct_function = false, type = "UDisksDriveAta*")] + public DriveAtaSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_drive_proxy_get_type ()")] + public class DriveProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Drive { + [CCode (cname = "udisks_drive_proxy_new")] + public async DriveProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksDrive*")] + public DriveProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_drive_proxy_new_for_bus")] + public async DriveProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksDrive*")] + public DriveProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksDrive*")] + public DriveProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksDrive*")] + public DriveProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_drive_skeleton_get_type ()")] + public class DriveSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Drive { + [CCode (has_construct_function = false, type = "UDisksDrive*")] + public DriveSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_encrypted_proxy_get_type ()")] + public class EncryptedProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Encrypted { + [CCode (cname = "udisks_encrypted_proxy_new")] + public async EncryptedProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksEncrypted*")] + public EncryptedProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_encrypted_proxy_new_for_bus")] + public async EncryptedProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksEncrypted*")] + public EncryptedProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksEncrypted*")] + public EncryptedProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksEncrypted*")] + public EncryptedProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_encrypted_skeleton_get_type ()")] + public class EncryptedSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Encrypted { + [CCode (has_construct_function = false, type = "UDisksEncrypted*")] + public EncryptedSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_filesystem_proxy_get_type ()")] + public class FilesystemProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Filesystem { + [CCode (cname = "udisks_filesystem_proxy_new")] + public async FilesystemProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksFilesystem*")] + public FilesystemProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_filesystem_proxy_new_for_bus")] + public async FilesystemProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksFilesystem*")] + public FilesystemProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksFilesystem*")] + public FilesystemProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksFilesystem*")] + public FilesystemProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_filesystem_skeleton_get_type ()")] + public class FilesystemSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Filesystem { + [CCode (has_construct_function = false, type = "UDisksFilesystem*")] + public FilesystemSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_job_proxy_get_type ()")] + public class JobProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Job { + [CCode (cname = "udisks_job_proxy_new")] + public async JobProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksJob*")] + public JobProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_job_proxy_new_for_bus")] + public async JobProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksJob*")] + public JobProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksJob*")] + public JobProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksJob*")] + public JobProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_job_skeleton_get_type ()")] + public class JobSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Job { + [CCode (has_construct_function = false, type = "UDisksJob*")] + public JobSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_loop_proxy_get_type ()")] + public class LoopProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Loop { + [CCode (cname = "udisks_loop_proxy_new")] + public async LoopProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksLoop*")] + public LoopProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_loop_proxy_new_for_bus")] + public async LoopProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksLoop*")] + public LoopProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksLoop*")] + public LoopProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksLoop*")] + public LoopProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_loop_skeleton_get_type ()")] + public class LoopSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Loop { + [CCode (has_construct_function = false, type = "UDisksLoop*")] + public LoopSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_manager_proxy_get_type ()")] + public class ManagerProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Manager { + [CCode (cname = "udisks_manager_proxy_new")] + public async ManagerProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksManager*")] + public ManagerProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_manager_proxy_new_for_bus")] + public async ManagerProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksManager*")] + public ManagerProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksManager*")] + public ManagerProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksManager*")] + public ManagerProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_manager_skeleton_get_type ()")] + public class ManagerSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Manager { + [CCode (has_construct_function = false, type = "UDisksManager*")] + public ManagerSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_object_manager_client_get_type ()")] + public class ObjectManagerClient : GLib.DBusObjectManagerClient, GLib.AsyncInitable, GLib.DBusObjectManager, GLib.Initable { + [CCode (cname = "udisks_object_manager_client_new")] + public async ObjectManagerClient (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "GDBusObjectManager*")] + public ObjectManagerClient.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_object_manager_client_new_for_bus")] + public async ObjectManagerClient.for_bus (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "GDBusObjectManager*")] + public ObjectManagerClient.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "GDBusObjectManager*")] + public ObjectManagerClient.for_bus_sync (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + public static GLib.Type get_proxy_type (GLib.DBusObjectManagerClient manager, string object_path, string? interface_name, void* user_data); + [CCode (has_construct_function = false, type = "GDBusObjectManager*")] + public ObjectManagerClient.sync (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_object_proxy_get_type ()")] + public class ObjectProxy : GLib.DBusObjectProxy, GLib.DBusObject, UDisks.Object { + [CCode (has_construct_function = false)] + public ObjectProxy (GLib.DBusConnection connection, string object_path); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_object_skeleton_get_type ()")] + public class ObjectSkeleton : GLib.DBusObjectSkeleton, GLib.DBusObject, UDisks.Object { + [CCode (has_construct_function = false)] + public ObjectSkeleton (string object_path); + public void set_block (UDisks.Block? interface_); + public void set_drive (UDisks.Drive? interface_); + public void set_drive_ata (UDisks.DriveAta? interface_); + public void set_encrypted (UDisks.Encrypted? interface_); + public void set_filesystem (UDisks.Filesystem? interface_); + public void set_job (UDisks.Job? interface_); + public void set_loop (UDisks.Loop? interface_); + public void set_manager (UDisks.Manager? interface_); + public void set_partition (UDisks.Partition? interface_); + public void set_partition_table (UDisks.PartitionTable? interface_); + public void set_swapspace (UDisks.Swapspace? interface_); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_partition_proxy_get_type ()")] + public class PartitionProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Partition { + [CCode (cname = "udisks_partition_proxy_new")] + public async PartitionProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksPartition*")] + public PartitionProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_partition_proxy_new_for_bus")] + public async PartitionProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksPartition*")] + public PartitionProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksPartition*")] + public PartitionProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksPartition*")] + public PartitionProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_partition_skeleton_get_type ()")] + public class PartitionSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Partition { + [CCode (has_construct_function = false, type = "UDisksPartition*")] + public PartitionSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_partition_table_proxy_get_type ()")] + public class PartitionTableProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.PartitionTable { + [CCode (cname = "udisks_partition_table_proxy_new")] + public async PartitionTableProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksPartitionTable*")] + public PartitionTableProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_partition_table_proxy_new_for_bus")] + public async PartitionTableProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksPartitionTable*")] + public PartitionTableProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksPartitionTable*")] + public PartitionTableProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksPartitionTable*")] + public PartitionTableProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_partition_table_skeleton_get_type ()")] + public class PartitionTableSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.PartitionTable { + [CCode (has_construct_function = false, type = "UDisksPartitionTable*")] + public PartitionTableSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "udisks_partition_type_info_get_type ()")] + [Compact] + public class PartitionTypeInfo { + public UDisks.PartitionTypeInfoFlags flags; + public weak string table_subtype; + public weak string table_type; + public weak string type; + public void free (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_swapspace_proxy_get_type ()")] + public class SwapspaceProxy : GLib.DBusProxy, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, UDisks.Swapspace { + [CCode (cname = "udisks_swapspace_proxy_new")] + public async SwapspaceProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksSwapspace*")] + public SwapspaceProxy.finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (cname = "udisks_swapspace_proxy_new_for_bus")] + public async SwapspaceProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable); + [CCode (has_construct_function = false, type = "UDisksSwapspace*")] + public SwapspaceProxy.for_bus_finish (GLib.AsyncResult res) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksSwapspace*")] + public SwapspaceProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, string name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + [CCode (has_construct_function = false, type = "UDisksSwapspace*")] + public SwapspaceProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, string? name, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_swapspace_skeleton_get_type ()")] + public class SwapspaceSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface, UDisks.Swapspace { + [CCode (has_construct_function = false, type = "UDisksSwapspace*")] + public SwapspaceSkeleton (); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_block_get_type ()")] + public interface Block : GLib.Object { + public async bool call_add_configuration_item (GLib.Variant arg_item, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_add_configuration_item_sync (GLib.Variant arg_item, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_format (string arg_type, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_format_sync (string arg_type, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_get_secret_configuration (GLib.Variant arg_options, GLib.Cancellable? cancellable, out GLib.Variant out_configuration) throws GLib.Error; + public bool call_get_secret_configuration_sync (GLib.Variant arg_options, out GLib.Variant out_configuration, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_open_for_backup (GLib.Variant arg_options, GLib.UnixFDList? fd_list, GLib.Cancellable? cancellable, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list) throws GLib.Error; + public bool call_open_for_backup_sync (GLib.Variant arg_options, GLib.UnixFDList? fd_list, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_open_for_restore (GLib.Variant arg_options, GLib.UnixFDList? fd_list, GLib.Cancellable? cancellable, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list) throws GLib.Error; + public bool call_open_for_restore_sync (GLib.Variant arg_options, GLib.UnixFDList? fd_list, out GLib.Variant out_fd, out GLib.UnixFDList out_fd_list, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_remove_configuration_item (GLib.Variant arg_item, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_remove_configuration_item_sync (GLib.Variant arg_item, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_update_configuration_item (GLib.Variant arg_old_item, GLib.Variant arg_new_item, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_update_configuration_item_sync (GLib.Variant arg_old_item, GLib.Variant arg_new_item, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_add_configuration_item (owned GLib.DBusMethodInvocation invocation); + public void complete_format (owned GLib.DBusMethodInvocation invocation); + public void complete_get_secret_configuration (owned GLib.DBusMethodInvocation invocation, GLib.Variant configuration); + public void complete_open_for_backup (owned GLib.DBusMethodInvocation invocation, GLib.UnixFDList? fd_list, GLib.Variant fd); + public void complete_open_for_restore (owned GLib.DBusMethodInvocation invocation, GLib.UnixFDList? fd_list, GLib.Variant fd); + public void complete_remove_configuration_item (owned GLib.DBusMethodInvocation invocation); + public void complete_update_configuration_item (owned GLib.DBusMethodInvocation invocation); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract GLib.Variant configuration { owned get; set; } + [NoAccessorMethod] + public abstract string crypto_backing_device { owned get; set; } + [NoAccessorMethod] + public abstract string device { owned get; set; } + [NoAccessorMethod] + public abstract uint64 device_number { get; set; } + [NoAccessorMethod] + public abstract string drive { owned get; set; } + [NoAccessorMethod] + public abstract bool hint_auto { get; set; } + [NoAccessorMethod] + public abstract string hint_icon_name { owned get; set; } + [NoAccessorMethod] + public abstract bool hint_ignore { get; set; } + [NoAccessorMethod] + public abstract string hint_name { owned get; set; } + [NoAccessorMethod] + public abstract bool hint_partitionable { get; set; } + [NoAccessorMethod] + public abstract bool hint_system { get; set; } + [NoAccessorMethod] + public abstract string id_label { owned get; set; } + [NoAccessorMethod] + public abstract string id_type { owned get; set; } + [NoAccessorMethod] + public abstract string id_usage { owned get; set; } + [NoAccessorMethod] + public abstract string id_uuid { owned get; set; } + [NoAccessorMethod] + public abstract string id_version { owned get; set; } + [NoAccessorMethod] + public abstract string preferred_device { owned get; set; } + [NoAccessorMethod] + public abstract bool read_only { get; set; } + [NoAccessorMethod] + public abstract uint64 size { get; set; } + [CCode (array_length = false, array_null_terminated = true)] + [NoAccessorMethod] + public abstract string[] symlinks { owned get; set; } + public virtual signal bool handle_add_configuration_item (GLib.DBusMethodInvocation invocation, GLib.Variant arg_item, GLib.Variant arg_options); + public virtual signal bool handle_format (GLib.DBusMethodInvocation invocation, string arg_type, GLib.Variant arg_options); + public virtual signal bool handle_get_secret_configuration (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + public virtual signal bool handle_open_for_backup (GLib.DBusMethodInvocation invocation, GLib.UnixFDList? fd_list, GLib.Variant arg_options); + public virtual signal bool handle_open_for_restore (GLib.DBusMethodInvocation invocation, GLib.UnixFDList? fd_list, GLib.Variant arg_options); + public virtual signal bool handle_remove_configuration_item (GLib.DBusMethodInvocation invocation, GLib.Variant arg_item, GLib.Variant arg_options); + public virtual signal bool handle_update_configuration_item (GLib.DBusMethodInvocation invocation, GLib.Variant arg_old_item, GLib.Variant arg_new_item, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_drive_get_type ()")] + public interface Drive : GLib.Object { + public async bool call_eject (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_eject_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_eject (owned GLib.DBusMethodInvocation invocation); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract string connection_bus { owned get; set; } + [NoAccessorMethod] + public abstract bool ejectable { get; set; } + [NoAccessorMethod] + public abstract string media { owned get; set; } + [NoAccessorMethod] + public abstract bool media_available { get; set; } + [NoAccessorMethod] + public abstract bool media_change_detected { get; set; } + [CCode (array_length = false, array_null_terminated = true)] + [NoAccessorMethod] + public abstract string[] media_compatibility { owned get; set; } + [NoAccessorMethod] + public abstract bool media_removable { get; set; } + [NoAccessorMethod] + public abstract string model { owned get; set; } + [NoAccessorMethod] + public abstract bool optical { get; set; } + [NoAccessorMethod] + public abstract bool optical_blank { get; set; } + [NoAccessorMethod] + public abstract uint optical_num_audio_tracks { get; set; } + [NoAccessorMethod] + public abstract uint optical_num_data_tracks { get; set; } + [NoAccessorMethod] + public abstract uint optical_num_sessions { get; set; } + [NoAccessorMethod] + public abstract uint optical_num_tracks { get; set; } + [NoAccessorMethod] + public abstract bool removable { get; set; } + [NoAccessorMethod] + public abstract string revision { owned get; set; } + [NoAccessorMethod] + public abstract int rotation_rate { get; set; } + [NoAccessorMethod] + public abstract string serial { owned get; set; } + [NoAccessorMethod] + public abstract uint64 size { get; set; } + [NoAccessorMethod] + public abstract string sort_key { owned get; set; } + [NoAccessorMethod] + public abstract uint64 time_detected { get; set; } + [NoAccessorMethod] + public abstract uint64 time_media_detected { get; set; } + [NoAccessorMethod] + public abstract string vendor { owned get; set; } + [NoAccessorMethod] + public abstract string wwn { owned get; set; } + public virtual signal bool handle_eject (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_drive_ata_get_type ()")] + public interface DriveAta : GLib.Object { + public async bool call_smart_get_attributes (GLib.Variant arg_options, GLib.Cancellable? cancellable, out GLib.Variant out_attributes) throws GLib.Error; + public bool call_smart_get_attributes_sync (GLib.Variant arg_options, out GLib.Variant out_attributes, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_smart_selftest_abort (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_smart_selftest_abort_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_smart_selftest_start (string arg_type, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_smart_selftest_start_sync (string arg_type, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_smart_update (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_smart_update_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_smart_get_attributes (owned GLib.DBusMethodInvocation invocation, GLib.Variant attributes); + public void complete_smart_selftest_abort (owned GLib.DBusMethodInvocation invocation); + public void complete_smart_selftest_start (owned GLib.DBusMethodInvocation invocation); + public void complete_smart_update (owned GLib.DBusMethodInvocation invocation); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract bool smart_enabled { get; set; } + [NoAccessorMethod] + public abstract bool smart_failing { get; set; } + [NoAccessorMethod] + public abstract int smart_num_attributes_failed_in_the_past { get; set; } + [NoAccessorMethod] + public abstract int smart_num_attributes_failing { get; set; } + [NoAccessorMethod] + public abstract int64 smart_num_bad_sectors { get; set; } + [NoAccessorMethod] + public abstract uint64 smart_power_on_seconds { get; set; } + [NoAccessorMethod] + public abstract int smart_selftest_percent_remaining { get; set; } + [NoAccessorMethod] + public abstract string smart_selftest_status { owned get; set; } + [NoAccessorMethod] + public abstract bool smart_supported { get; set; } + [NoAccessorMethod] + public abstract double smart_temperature { get; set; } + [NoAccessorMethod] + public abstract uint64 smart_updated { get; set; } + public virtual signal bool handle_smart_get_attributes (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + public virtual signal bool handle_smart_selftest_abort (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + public virtual signal bool handle_smart_selftest_start (GLib.DBusMethodInvocation invocation, string arg_type, GLib.Variant arg_options); + public virtual signal bool handle_smart_update (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_encrypted_get_type ()")] + public interface Encrypted : GLib.Object { + public async bool call_change_passphrase (string arg_passphrase, string arg_new_passphrase, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_change_passphrase_sync (string arg_passphrase, string arg_new_passphrase, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_lock (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_lock_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_unlock (string arg_passphrase, GLib.Variant arg_options, GLib.Cancellable? cancellable, out string out_cleartext_device) throws GLib.Error; + public bool call_unlock_sync (string arg_passphrase, GLib.Variant arg_options, out string out_cleartext_device, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_change_passphrase (owned GLib.DBusMethodInvocation invocation); + public void complete_lock (owned GLib.DBusMethodInvocation invocation); + public void complete_unlock (owned GLib.DBusMethodInvocation invocation, string cleartext_device); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + public virtual signal bool handle_change_passphrase (GLib.DBusMethodInvocation invocation, string arg_passphrase, string arg_new_passphrase, GLib.Variant arg_options); + public virtual signal bool handle_lock (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + public virtual signal bool handle_unlock (GLib.DBusMethodInvocation invocation, string arg_passphrase, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_filesystem_get_type ()")] + public interface Filesystem : GLib.Object { + public async bool call_mount (GLib.Variant arg_options, GLib.Cancellable? cancellable, out string out_mount_path) throws GLib.Error; + public bool call_mount_sync (GLib.Variant arg_options, out string out_mount_path, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_set_label (string arg_label, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_set_label_sync (string arg_label, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_unmount (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_unmount_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_mount (owned GLib.DBusMethodInvocation invocation, string mount_path); + public void complete_set_label (owned GLib.DBusMethodInvocation invocation); + public void complete_unmount (owned GLib.DBusMethodInvocation invocation); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (array_length = false, array_null_terminated = true)] + [NoAccessorMethod] + public abstract string[] mount_points { owned get; set; } + public virtual signal bool handle_mount (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + public virtual signal bool handle_set_label (GLib.DBusMethodInvocation invocation, string arg_label, GLib.Variant arg_options); + public virtual signal bool handle_unmount (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_job_get_type ()")] + public interface Job : GLib.Object { + public async bool call_cancel (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_cancel_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_cancel (owned GLib.DBusMethodInvocation invocation); + public void emit_completed (bool arg_success, string arg_message); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract uint64 expected_end_time { get; set; } + [CCode (array_length = false, array_null_terminated = true)] + [NoAccessorMethod] + public abstract string[] objects { owned get; set; } + [NoAccessorMethod] + public abstract double progress { get; set; } + [NoAccessorMethod] + public abstract uint64 start_time { get; set; } + public virtual signal void completed (bool arg_success, string arg_message); + public virtual signal bool handle_cancel (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_loop_get_type ()")] + public interface Loop : GLib.Object { + public async bool call_delete (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_delete_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_delete (owned GLib.DBusMethodInvocation invocation); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract string backing_file { owned get; set; } + public virtual signal bool handle_delete (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_manager_get_type ()")] + public interface Manager : GLib.Object { + public async bool call_loop_setup (GLib.Variant arg_fd, GLib.Variant arg_options, GLib.UnixFDList? fd_list, GLib.Cancellable? cancellable, out string out_resulting_device, out GLib.UnixFDList out_fd_list) throws GLib.Error; + public bool call_loop_setup_sync (GLib.Variant arg_fd, GLib.Variant arg_options, GLib.UnixFDList? fd_list, out string out_resulting_device, out GLib.UnixFDList out_fd_list, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_loop_setup (owned GLib.DBusMethodInvocation invocation, GLib.UnixFDList? fd_list, string resulting_device); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract string version { owned get; set; } + public virtual signal bool handle_loop_setup (GLib.DBusMethodInvocation invocation, GLib.UnixFDList? fd_list, GLib.Variant arg_fd, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_object_get_type ()")] + public interface Object : GLib.DBusObject, GLib.Object { + public UDisks.Block get_block (); + public UDisks.Drive get_drive (); + public UDisks.DriveAta get_drive_ata (); + public UDisks.Encrypted get_encrypted (); + public UDisks.Filesystem get_filesystem (); + public UDisks.Job get_job (); + public UDisks.Loop get_loop (); + public UDisks.Manager get_manager (); + public UDisks.Partition get_partition (); + public UDisks.PartitionTable get_partition_table (); + public UDisks.Swapspace get_swapspace (); + [NoAccessorMethod] + public abstract UDisks.Block block { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.Drive drive { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.DriveAta drive_ata { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.Encrypted encrypted { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.Filesystem filesystem { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.Job job { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.Loop loop { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.Manager manager { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.Partition partition { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.PartitionTable partition_table { owned get; set; } + [NoAccessorMethod] + public abstract UDisks.Swapspace swapspace { owned get; set; } + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_partition_get_type ()")] + public interface Partition : GLib.Object { + public async bool call_delete (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_delete_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_set_flags (uint64 arg_flags, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_set_flags_sync (uint64 arg_flags, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_set_name (string arg_name, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_set_name_sync (string arg_name, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_set_type (string arg_type, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_set_type_sync (string arg_type, GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_delete (owned GLib.DBusMethodInvocation invocation); + public void complete_set_flags (owned GLib.DBusMethodInvocation invocation); + public void complete_set_name (owned GLib.DBusMethodInvocation invocation); + public void complete_set_type (owned GLib.DBusMethodInvocation invocation); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract uint64 flags { get; set; } + [NoAccessorMethod] + public abstract bool is_contained { get; set; } + [NoAccessorMethod] + public abstract bool is_container { get; set; } + [NoAccessorMethod] + public abstract string name { owned get; set; } + [NoAccessorMethod] + public abstract uint number { get; set; } + [NoAccessorMethod] + public abstract uint64 offset { get; set; } + [NoAccessorMethod] + public abstract uint64 size { get; set; } + [NoAccessorMethod] + public abstract string table { owned get; set; } + [NoAccessorMethod] + public abstract string type_ { owned get; set; } + [NoAccessorMethod] + public abstract string uuid { owned get; set; } + public virtual signal bool handle_delete (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + public virtual signal bool handle_set_flags (GLib.DBusMethodInvocation invocation, uint64 arg_flags, GLib.Variant arg_options); + public virtual signal bool handle_set_name (GLib.DBusMethodInvocation invocation, string arg_name, GLib.Variant arg_options); + public virtual signal bool handle_set_type (GLib.DBusMethodInvocation invocation, string arg_type, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_partition_table_get_type ()")] + public interface PartitionTable : GLib.Object { + public async bool call_create_partition (uint64 arg_offset, uint64 arg_size, string arg_type, string arg_name, GLib.Variant arg_options, GLib.Cancellable? cancellable, out string out_created_partition) throws GLib.Error; + public bool call_create_partition_sync (uint64 arg_offset, uint64 arg_size, string arg_type, string arg_name, GLib.Variant arg_options, out string out_created_partition, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_create_partition (owned GLib.DBusMethodInvocation invocation, string created_partition); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract string type_ { owned get; set; } + public virtual signal bool handle_create_partition (GLib.DBusMethodInvocation invocation, uint64 arg_offset, uint64 arg_size, string arg_type, string arg_name, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", type_id = "udisks_swapspace_get_type ()")] + public interface Swapspace : GLib.Object { + public async bool call_start (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_start_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public async bool call_stop (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public bool call_stop_sync (GLib.Variant arg_options, GLib.Cancellable? cancellable) throws GLib.Error; + public void complete_start (owned GLib.DBusMethodInvocation invocation); + public void complete_stop (owned GLib.DBusMethodInvocation invocation); + public static unowned GLib.DBusInterfaceInfo interface_info (); + public static uint override_properties (GLib.ObjectClass klass, uint property_id_begin); + [NoAccessorMethod] + public abstract bool active { get; set; } + public virtual signal bool handle_start (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + public virtual signal bool handle_stop (GLib.DBusMethodInvocation invocation, GLib.Variant arg_options); + } + [CCode (cheader_filename = "udisks/udisks.h", cprefix = "UDISKS_ERROR_")] + public enum Error { + FAILED, + CANCELLED, + ALREADY_CANCELLED, + NOT_AUTHORIZED, + NOT_AUTHORIZED_CAN_OBTAIN, + NOT_AUTHORIZED_DISMISSED, + ALREADY_MOUNTED, + NOT_MOUNTED, + OPTION_NOT_PERMITTED, + MOUNTED_BY_OTHER_USER, + ALREADY_UNMOUNTING, + NOT_SUPPORTED, + TIMED_OUT, + WOULD_WAKEUP, + DEVICE_BUSY; + public static GLib.Quark quark (); + } + [CCode (cheader_filename = "udisks/udisks.h", cprefix = "UDISKS_PARTITION_TYPE_INFO_FLAGS_")] + [Flags] + public enum PartitionTypeInfoFlags { + NONE, + SWAP, + RAID, + HIDDEN, + CREATE_ONLY, + SYSTEM + } + [CCode (cheader_filename = "udisks/udisks.h", cname = "UDISKS_ERROR_NUM_ENTRIES")] + public const int ERROR_NUM_ENTRIES; + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo block_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint block_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo drive_ata_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint drive_ata_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo drive_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint drive_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo encrypted_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint encrypted_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo filesystem_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint filesystem_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo job_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint job_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo loop_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint loop_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo manager_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint manager_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo partition_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint partition_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo partition_table_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint partition_table_override_properties (GLib.ObjectClass klass, uint property_id_begin); + [CCode (cheader_filename = "udisks/udisks.h")] + public static unowned GLib.DBusInterfaceInfo swapspace_interface_info (); + [CCode (cheader_filename = "udisks/udisks.h")] + public static uint swapspace_override_properties (GLib.ObjectClass klass, uint property_id_begin); +} diff -Nru vala-0.16-0.15.2/.version vala-0.16-0.16.0/.version --- vala-0.16-0.15.2/.version 2012-02-25 16:21:38.000000000 +0000 +++ vala-0.16-0.16.0/.version 2012-03-26 16:26:44.000000000 +0000 @@ -1 +1 @@ -0.15.2 +0.16.0