File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ 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
29+
2630function Connection_method :filename ()
2731 -- Get the filename asscoiated with a connection. Return nil if there is no associated file.
2832 local so = ffi .cast (' VipsConnection *' , self .vconnection )
Original file line number Diff line number Diff line change 33local ffi = require " ffi"
44
55local verror = require " vips.verror"
6- local vobject = require " vips.vobject"
76local Connection = require " vips.Connection"
87
98local vips_lib = ffi .load (ffi .os == " Windows" and " libvips-42.dll" or " vips" )
109
1110local Source = {}
1211
13- Source .vobject = function (self )
14- return ffi .cast (vobject .typeof , self )
15- end
16-
1712Source .new_from_descriptor = function (descriptor )
1813 local source = vips_lib .vips_source_new_from_descriptor (descriptor )
1914 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