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)
23
23
connection .vconnection = vobject .new (vconnection )
24
24
return setmetatable (connection , Connection .mt )
25
25
end
26
+ function Connection_method :vobject ()
27
+ return ffi .cast (vobject .typeof , self .vconnection )
28
+ end
29
+
26
30
function Connection_method :filename ()
27
31
-- Get the filename asscoiated with a connection. Return nil if there is no associated file.
28
32
local so = ffi .cast (' VipsConnection *' , self .vconnection )
Original file line number Diff line number Diff line change 3
3
local ffi = require " ffi"
4
4
5
5
local verror = require " vips.verror"
6
- local vobject = require " vips.vobject"
7
6
local Connection = require " vips.Connection"
8
7
9
8
local vips_lib = ffi .load (ffi .os == " Windows" and " libvips-42.dll" or " vips" )
10
9
11
10
local Source = {}
12
11
13
- Source .vobject = function (self )
14
- return ffi .cast (vobject .typeof , self )
15
- end
16
-
17
12
Source .new_from_descriptor = function (descriptor )
18
13
local source = vips_lib .vips_source_new_from_descriptor (descriptor )
19
14
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")
9
9
10
10
local Target = {}
11
11
12
- Target .vobject = function (self )
13
- return ffi .cast (vobject .typeof , self )
14
- end
15
-
16
12
Target .new_to_descriptor = function (descriptor )
17
13
collectgarbage (" stop" )
18
14
local target = vips_lib .vips_target_new_to_descriptor (descriptor )
You can’t perform that action at this time.
0 commit comments