view subtly/glib.rb @ 0:87b46f01d08d

Initial commit
author unexist
date Sat, 12 Dec 2009 22:33:59 +0100
parents
children 705abf5135fe
line wrap: on
line source
##
# @package subtly
#
# @file Glib bindings
# @author Christoph Kappel <unexist@dorfelite.net>
# @version $Id: subtly/glib.rb,v 0 1260653639.0-3600 unexist $
#
# This program can be distributed under the terms of the GNU GPL.
##

require "ffi"

module Subtly
  module Glib
    extend FFI::Library

    ffi_lib("libgthread-2.0")

    ## thread_init
    # Init thread system
    #
    # @param  [Pointer, #read]  Just don't use, #GThreadFunctions
    ##

    attach_function(:thread_init,
      :g_thread_init, [ :pointer ], :void
    )
  end
end