lib/rdf/raptor/ffi/v2.rb in rdf-raptor-1.99.0 vs lib/rdf/raptor/ffi/v2.rb in rdf-raptor-2.0.0
- old
+ new
@@ -26,10 +26,11 @@
RAPTOR_TERM_TYPE_BLANK = 4
# @see http://librdf.org/raptor/api/tutorial-initialising-finishing.html
typedef :pointer, :raptor_world
typedef :int, :raptor_version
+ typedef :pointer, :raptor_iostream
attach_function :raptor_new_world_internal, [:raptor_version], :raptor_world
attach_function :raptor_free_world, [], :void
attach_function :raptor_alloc_memory, [:size_t], :pointer
attach_function :raptor_calloc_memory, [:size_t, :size_t], :pointer
attach_function :raptor_free_memory, [:pointer], :void
@@ -75,10 +76,11 @@
attach_function :raptor_new_term_from_uri, [:raptor_world, :raptor_uri], :raptor_term
attach_function :raptor_new_term_from_uri_string, [:raptor_world, :string], :raptor_term
attach_function :raptor_new_term_from_literal, [:raptor_world, :literal, :datatype, :language], :raptor_term
attach_function :raptor_new_term_from_blank, [:raptor_world, :blank], :raptor_term
attach_function :raptor_free_term, [:raptor_term], :void
+ attach_function :raptor_term_ntriples_write, [:raptor_term, :raptor_iostream], :int
# @see http://librdf.org/raptor/api/raptor2-section-xml-namespace.html
typedef :pointer, :raptor_namespace
attach_function :raptor_free_namespace, [:raptor_namespace], :void
@@ -104,10 +106,9 @@
#attach_function :raptor_get_need_base_uri, [:raptor_parser], :int
attach_function :raptor_parser_parse_abort, [], :void
attach_function :raptor_free_parser, [:raptor_parser], :void
# @see http://librdf.org/raptor/api/raptor2-section-iostream.html
- typedef :pointer, :raptor_iostream
attach_function :raptor_new_iostream_from_handler, [:raptor_world, :pointer, :pointer], :raptor_iostream
attach_function :raptor_new_iostream_to_filename, [:raptor_world, :string], :raptor_iostream
attach_function :raptor_new_iostream_to_sink, [:raptor_world], :raptor_iostream
attach_function :raptor_free_iostream, [:raptor_iostream], :void
callback :raptor_iostream_init_func, [:pointer], :int