summaryrefslogtreecommitdiff
path: root/vapi/packages
diff options
context:
space:
mode:
authorEvan Nemerson <evan@coeus-group.com>2010-03-21 00:24:00 -0700
committerEvan Nemerson <evan@coeus-group.com>2010-03-21 01:12:15 -0700
commit9c1ca22c0afd498c86354983d1b0cdf6c3b58601 (patch)
tree3f0dc67bed6af0a3bb1a4c044a4cbe4285921b2d /vapi/packages
parentbdcc15c43285b2138cef7a0754fcd8bf1012ce92 (diff)
downloadvala-9c1ca22c0afd498c86354983d1b0cdf6c3b58601.tar.gz
Do not use `weak' modifier in *-custom.vala where it is not applicable
Diffstat (limited to 'vapi/packages')
-rw-r--r--vapi/packages/goocanvas/goocanvas-custom.vala46
-rw-r--r--vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala22
-rw-r--r--vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala2
-rw-r--r--vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala66
4 files changed, 68 insertions, 68 deletions
diff --git a/vapi/packages/goocanvas/goocanvas-custom.vala b/vapi/packages/goocanvas/goocanvas-custom.vala
index f2ee89bc1..e7e4b2913 100644
--- a/vapi/packages/goocanvas/goocanvas-custom.vala
+++ b/vapi/packages/goocanvas/goocanvas-custom.vala
@@ -50,49 +50,49 @@ namespace Goo
public class CanvasEllipse
{
[CCode (cname="goo_canvas_ellipse_new", type="GooCanvasItem*")]
- public static weak CanvasEllipse create (Goo.CanvasItem? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
+ public static unowned CanvasEllipse create (Goo.CanvasItem? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
}
public class CanvasEllipseModel
{
[CCode (cname="goo_canvas_ellipse_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasEllipseModel create (Goo.CanvasItemModel? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
+ public static unowned CanvasEllipseModel create (Goo.CanvasItemModel? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
}
public class CanvasGrid
{
[CCode (cname="goo_canvas_grid_new", type="GooCanvasItemModel*")]
- public static weak CanvasGrid create(Goo.CanvasItem? parent, double x, double y, double width, double height, double x_step, double y_step, double x_offset, double y_offset, ...);
+ public static unowned CanvasGrid create(Goo.CanvasItem? parent, double x, double y, double width, double height, double x_step, double y_step, double x_offset, double y_offset, ...);
}
public class CanvasGridModel
{
[CCode (cname="goo_canvas_grid_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasGridModel create(CanvasItemModel? parent, double x, double y, double width, double height, double x_step, double y_step, double x_offset, double y_offset, ...);
+ public static unowned CanvasGridModel create(CanvasItemModel? parent, double x, double y, double width, double height, double x_step, double y_step, double x_offset, double y_offset, ...);
}
public class CanvasGroup
{
[CCode (cname="goo_canvas_group_new", type="GooCanvasItem*")]
- public static weak CanvasGroup create (Goo.CanvasItem? parent, ...);
+ public static unowned CanvasGroup create (Goo.CanvasItem? parent, ...);
}
public class CanvasGroupModel
{
[CCode (cname="goo_canvas_group_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasGroupModel create (Goo.CanvasItemModel? parent, ...);
+ public static unowned CanvasGroupModel create (Goo.CanvasItemModel? parent, ...);
}
public class CanvasImage
{
[CCode (cname="goo_canvas_image_new", type="GooCanvasItem*")]
- public static weak CanvasImage create (Goo.CanvasItem? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
+ public static unowned CanvasImage create (Goo.CanvasItem? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
}
public class CanvasImageModel
{
[CCode (cname="goo_canvas_image_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasImageModel create (Goo.CanvasItemModel? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
+ public static unowned CanvasImageModel create (Goo.CanvasItemModel? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
}
[Compact]
@@ -106,13 +106,13 @@ namespace Goo
public class CanvasPath
{
[CCode (cname="goo_canvas_path_new", type="GooCanvasItem*")]
- public static weak CanvasPath create (Goo.CanvasItem? parent, string path_data, ...);
+ public static unowned CanvasPath create (Goo.CanvasItem? parent, string path_data, ...);
}
public class CanvasPathModel
{
[CCode (cname="goo_canvas_path_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasPathModel create (Goo.CanvasItemModel? parent, string path_data, ...);
+ public static unowned CanvasPathModel create (Goo.CanvasItemModel? parent, string path_data, ...);
}
[Compact]
@@ -124,65 +124,65 @@ namespace Goo
public class CanvasPolyline
{
[CCode (cname="goo_canvas_polyline_new", type="GooCanvasItem*")]
- public static weak CanvasPolyline create (Goo.CanvasItem? parent, bool close_path, int num_points, ...);
+ public static unowned CanvasPolyline create (Goo.CanvasItem? parent, bool close_path, int num_points, ...);
[CCode (cname="goo_canvas_polyline_new_line", type="GooCanvasItem*")]
- public static weak CanvasPolyline create_line (Goo.CanvasItem? parent, double x1, double y1, double x2, double y2, ...);
+ public static unowned CanvasPolyline create_line (Goo.CanvasItem? parent, double x1, double y1, double x2, double y2, ...);
}
public class CanvasPolylineModel
{
[CCode (cname="goo_canvas_polyline_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasPolylineModel create (Goo.CanvasItemModel? parent, bool close_path, int num_points, ...);
+ public static unowned CanvasPolylineModel create (Goo.CanvasItemModel? parent, bool close_path, int num_points, ...);
[CCode (cname="goo_canvas_polyline_model_new_line", type="GooCanvasItemModel*")]
- public static weak CanvasPolylineModel create_line (Goo.CanvasItemModel? parent, double x1, double y1, double x2, double y2, ...);
+ public static unowned CanvasPolylineModel create_line (Goo.CanvasItemModel? parent, double x1, double y1, double x2, double y2, ...);
}
public class CanvasRect
{
[CCode (cname = "goo_canvas_rect_new", type="GooCanvasItem*")]
- public static weak CanvasRect create (Goo.CanvasItem? parent, double x, double y, double width, double height, ...);
+ public static unowned CanvasRect create (Goo.CanvasItem? parent, double x, double y, double width, double height, ...);
}
public class CanvasRectModel
{
[CCode (cname = "goo_canvas_rect_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasRectModel create (Goo.CanvasItemModel? parent, double x, double y, double width, double height, ...);
+ public static unowned CanvasRectModel create (Goo.CanvasItemModel? parent, double x, double y, double width, double height, ...);
}
public class CanvasStyle
{
- public weak Goo.CanvasStyle? parent;
- public weak GLib.Array<CanvasStyleProperty> properties;
+ public unowned Goo.CanvasStyle? parent;
+ public unowned GLib.Array<CanvasStyleProperty> properties;
}
public class CanvasTable
{
[CCode (cname="goo_canvas_table_new", type="GooCanvasItem*")]
- public static weak CanvasTable create (Goo.CanvasItem? parent, ...);
+ public static unowned CanvasTable create (Goo.CanvasItem? parent, ...);
}
public class CanvasTableModel
{
[CCode (cname="goo_canvas_table_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasTableModel create (Goo.CanvasItemModel? parent, ...);
+ public static unowned CanvasTableModel create (Goo.CanvasItemModel? parent, ...);
}
public class CanvasText
{
[CCode (cname="goo_canvas_text_new", type="GooCanvasItem*")]
- public static weak CanvasText create (Goo.CanvasItem? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
+ public static unowned CanvasText create (Goo.CanvasItem? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
}
public class CanvasTextModel
{
[CCode (cname="goo_canvas_text_model_new", type="GooCanvasItemModel*")]
- public static weak CanvasTextModel create (Goo.CanvasItemModel? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
+ public static unowned CanvasTextModel create (Goo.CanvasItemModel? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
}
public class CanvasWidget
{
[CCode (cname="goo_canvas_widget_new", type="GooCanvasItem*")]
- public static weak CanvasWidget create (Goo.CanvasItem? parent, Gtk.Widget widget, double x, double y, double width, double height, ...);
+ public static unowned CanvasWidget create (Goo.CanvasItem? parent, Gtk.Widget widget, double x, double y, double width, double height, ...);
}
public interface CanvasItem : GLib.Object
diff --git a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
index 258f0521e..c9259e75e 100644
--- a/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
+++ b/vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala
@@ -20,11 +20,11 @@
* Jürg Billeter <j@bitron.ch>
*/
namespace Gst {
- public extern void init ([CCode (array_length_pos = 0.9)] ref weak string[] args);
+ public extern void init ([CCode (array_length_pos = 0.9)] ref unowned string[] args);
public struct ClockTime : uint64 {
[CCode (cname="GST_TIME_ARGS")]
- public weak string args ();
+ public unowned string args ();
[CCode (cname="GST_CLOCK_TIME_IS_VALID")]
public bool is_valid ();
}
@@ -38,7 +38,7 @@ namespace Gst {
[CCode (ref_function = "gst_object_ref", unref_function = "gst_object_unref")]
public class Object {
- public weak Object @ref ();
+ public unowned Object @ref ();
public void unref ();
public void sink ();
public static void replace (ref Gst.Object oldobj, Gst.Object newobj);
@@ -52,7 +52,7 @@ namespace Gst {
public class Buffer : Gst.MiniObject {
[CCode (has_construct_function = false)]
public Buffer ();
- public weak Buffer @ref ();
+ public unowned Buffer @ref ();
public void unref ();
[CCode (cname = "GST_BUFFER_FLAG_SET")]
public void flag_set (BufferFlag flag);
@@ -92,7 +92,7 @@ namespace Gst {
public delegate bool DataProbeCallback (Gst.Pad pad, Gst.MiniObject data);
public class Caps {
- public weak Caps @ref ();
+ public unowned Caps @ref ();
public void unref ();
[ReturnsModifiedPointer]
public void make_writable ();
@@ -190,7 +190,7 @@ namespace Gst {
public void list_prepend_value (Gst.Value prepend_value);
public void list_concat (Gst.Value value1, Gst.Value value2);
public uint list_get_size ();
- public weak Gst.Value? list_get_value (uint index);
+ public unowned Gst.Value? list_get_value (uint index);
public void set_fraction (int numerator, int denominator);
public int get_fraction_numerator ();
@@ -199,8 +199,8 @@ namespace Gst {
public static bool fraction_subtract (GLib.Value dest, GLib.Value minuend, GLib.Value subtrahend);
public void set_fraction_range (Gst.Value start, Gst.Value end);
- public weak Gst.Value? get_fraction_range_min ();
- public weak Gst.Value? get_fraction_range_max ();
+ public unowned Gst.Value? get_fraction_range_min ();
+ public unowned Gst.Value? get_fraction_range_max ();
public void set_fraction_range_full (int numerator_start, int denominator_start, int numerator_end, int denominator_end);
public void set_date (GLib.Date date);
@@ -210,9 +210,9 @@ namespace Gst {
public Caps get_caps ();
public void set_structure (Structure structure);
- public weak Structure get_structure ();
+ public unowned Structure get_structure ();
- public weak Buffer get_buffer ();
+ public unowned Buffer get_buffer ();
public void set_buffer (Buffer b);
public void take_buffer (Buffer b);
@@ -242,7 +242,7 @@ namespace Gst {
public void array_append_value (Gst.Value append_value);
public uint array_get_size ();
- public weak Gst.Value? array_get_value (uint index);
+ public unowned Gst.Value? array_get_value (uint index);
public void array_prepend_value (Gst.Value prepend_value);
}
diff --git a/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala b/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala
index 437b99f34..7b6adb209 100644
--- a/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala
+++ b/vapi/packages/gstreamer-video-0.10/gstreamer-video-0.10-custom.vala
@@ -122,6 +122,6 @@ namespace Gst {
public const string RGB_15;
[CCode (cname = "GST_VIDEO_CAPS_YUV")]
- public weak string YUV (string fourcc);
+ public unowned string YUV (string fourcc);
}
}
diff --git a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala
index f5cf696ea..d154b3533 100644
--- a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala
+++ b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala
@@ -5,34 +5,34 @@ namespace Tracker {
public static void field_add (Tracker.Field field);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak string field_get_display_name (Tracker.Field field);
+ public static unowned string field_get_display_name (Tracker.Field field);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak string field_get_id (string name);
+ public static unowned string field_get_id (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
public static bool field_is_child_of (string child, string parent);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak Tracker.Field get_field_by_id (int id);
+ public static unowned Tracker.Field get_field_by_id (int id);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak Tracker.Field get_field_by_name (string name);
+ public static unowned Tracker.Field get_field_by_name (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak string get_field_name_by_service_name (Tracker.Field field, string service_str);
+ public static unowned string get_field_name_by_service_name (Tracker.Field field, string service_str);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak GLib.SList get_field_names_registered (string service_str);
+ public static unowned GLib.SList get_field_names_registered (string service_str);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak string get_service_by_id (int id);
+ public static unowned string get_service_by_id (int id);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak string get_service_by_mime (string mime);
+ public static unowned string get_service_by_mime (string mime);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak Tracker.Service get_service_by_name (string service_str);
+ public static unowned Tracker.Service get_service_by_name (string service_str);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
public static Tracker.DBType get_service_db_by_name (string service_str);
@@ -41,13 +41,13 @@ namespace Tracker {
public static int get_service_id_by_name (string service_str);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak GLib.SList get_service_names_registered ();
+ public static unowned GLib.SList get_service_names_registered ();
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak string get_service_parent (string service_str);
+ public static unowned string get_service_parent (string service_str);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
- public static weak string get_service_parent_by_id (int id);
+ public static unowned string get_service_parent_by_id (int id);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")]
public static int get_service_parent_id_by_id (int id);
@@ -89,43 +89,43 @@ namespace Tracker {
namespace ModuleConfig{
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak string get_description (string name);
+ public static unowned string get_description (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
public static bool get_enabled (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_ignored_directories (string name);
+ public static unowned GLib.List get_ignored_directories (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_ignored_directory_patterns (string name);
+ public static unowned GLib.List get_ignored_directory_patterns (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_ignored_file_patterns (string name);
+ public static unowned GLib.List get_ignored_file_patterns (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_ignored_files (string name);
+ public static unowned GLib.List get_ignored_files (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_index_file_patterns (string name);
+ public static unowned GLib.List get_index_file_patterns (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_index_files (string name);
+ public static unowned GLib.List get_index_files (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_index_mime_types (string name);
+ public static unowned GLib.List get_index_mime_types (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak string get_index_service (string name);
+ public static unowned string get_index_service (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_modules ();
+ public static unowned GLib.List get_modules ();
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_monitor_directories (string name);
+ public static unowned GLib.List get_monitor_directories (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
- public static weak GLib.List get_monitor_recurse_directories (string name);
+ public static unowned GLib.List get_monitor_recurse_directories (string name);
[CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")]
public static bool init ();
@@ -141,19 +141,19 @@ namespace Tracker {
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
public delegate void* FileGetDataFunc (string path);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
- public delegate weak Tracker.Metadata FileGetMetadataFunc (Tracker.File file);
+ public delegate unowned Tracker.Metadata FileGetMetadataFunc (Tracker.File file);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
- public delegate weak string FileGetServiceTypeFunc (Tracker.File file);
+ public delegate unowned string FileGetServiceTypeFunc (Tracker.File file);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
- public delegate weak string FileGetText (Tracker.File path);
+ public delegate unowned string FileGetText (Tracker.File path);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
public delegate void FileGetUriFunc (Tracker.File file, string dirname, string basename);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
public delegate bool FileIterContents (Tracker.File path);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
- public delegate weak string GetDirectoriesFunc ();
+ public delegate unowned string GetDirectoriesFunc ();
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
- public delegate weak string GetNameFunc ();
+ public delegate unowned string GetNameFunc ();
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
public delegate void Init ();
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h", has_target = false)]
@@ -164,17 +164,17 @@ namespace Tracker {
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]
public static void* file_get_data (string path);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]
- public static weak Tracker.Metadata file_get_metadata (Tracker.File file);
+ public static unowned Tracker.Metadata file_get_metadata (Tracker.File file);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]
- public static weak string file_get_service_type (Tracker.File file);
+ public static unowned string file_get_service_type (Tracker.File file);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]
- public static weak string file_get_text (Tracker.File file);
+ public static unowned string file_get_text (Tracker.File file);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]
public static void file_get_uri (Tracker.File file, string dirname, string basename);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]
public static bool file_iter_contents (Tracker.File file);
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]
- public static weak string get_name ();
+ public static unowned string get_name ();
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]
public static void init ();
[CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")]