File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ Connection.new = function(vconnection)
2323 connection .vconnection = vobject .new (vconnection )
2424 return setmetatable (connection , Connection .mt )
2525end
26+ function Connection_method :vobject ()
27+ return ffi .cast (vobject .typeof , self .vconnection )
28+ end
2629function Connection_method :filename ()
2730 -- Get the filename asscoiated with a connection. Return nil if there is no associated file.
2831 local so = ffi .cast (' VipsConnection *' , self .vconnection )
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ local vips_lib = ffi.load(ffi.os == "Windows" and "libvips-42.dll" or "vips")
1010
1111local Source = {}
1212
13- Source .vobject = function (self )
14- return ffi .cast (vobject .typeof , self )
15- end
16-
1713Source .new_from_descriptor = function (descriptor )
1814 local source = vips_lib .vips_source_new_from_descriptor (descriptor )
1915 if source == ffi .NULL then
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ local vips_lib = ffi.load(ffi.os == "Windows" and "libvips-42.dll" or "vips")
99
1010local Target = {}
1111
12- Target .vobject = function (self )
13- return ffi .cast (vobject .typeof , self )
14- end
15-
1612Target .new_to_descriptor = function (descriptor )
1713 collectgarbage (" stop" )
1814 local target = vips_lib .vips_target_new_to_descriptor (descriptor )
You can’t perform that action at this time.
0 commit comments