mock build
This commit is contained in:
20
locallibs/ruby-rpm-ffi/lib/rpm/c/rpmdb.rb
Normal file
20
locallibs/ruby-rpm-ffi/lib/rpm/c/rpmdb.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
module RPM
|
||||
module C
|
||||
typedef :pointer, :rpmdb
|
||||
typedef :pointer, :rpmdbMatchIterator
|
||||
|
||||
RegexpMode = enum(:rpmMireMode, %i[
|
||||
default strcmp regex glob
|
||||
])
|
||||
|
||||
attach_function 'rpmdbCountPackages', %i[rpmdb string], :int
|
||||
attach_function 'rpmdbGetIteratorOffset', [:rpmdbMatchIterator], :uint
|
||||
attach_function 'rpmdbGetIteratorCount', [:rpmdbMatchIterator], :int
|
||||
attach_function 'rpmdbSetIteratorRE', %i[rpmdbMatchIterator rpmTagVal rpmMireMode string], :int
|
||||
|
||||
attach_function 'rpmdbInitIterator', %i[rpmdb rpmDbiTagVal pointer size_t], :rpmdbMatchIterator
|
||||
|
||||
attach_function 'rpmdbNextIterator', [:rpmdb], :header
|
||||
attach_function 'rpmdbFreeIterator', [:rpmdb], :rpmdbMatchIterator
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user