;;;; Glib System Packaging
-;;; When loaded, Scheme becomes a g_source attached to the default
-;;; GMainContext. A glib-thread is spawned to periodically yield to
-;;; the toolkit(s).
-
(global-definitions runtime/)
(global-definitions sos/)
(define-package (glib)
- (parent ())
+ (parent ()))
+
+(define-package (glib internal)
+ (parent (glib))
(files "glib")
(import (runtime thread)
- get-thread-event-block))
+ get-thread-event-block)
+ (export (glib)
+ with-glib-lock without-glib-lock
+ assert-glib-locked assert-without-interruption
+ add-glib-cleanup execute-glib-cleanup))
(define-package (gobject)
- (parent (glib))
+ (parent (glib internal))
(files "gobject")
;;(depends-on "glib.bin" "glib")
(export (glib)
gquark-from-string gquark-to-string))
(define-package (gio)
- (parent (glib))
+ (parent (glib internal))
(files "gio")
;;(depends-on "glib.bin" "glib")
(import (runtime ffi)
make-gfile))
(define-package (glib main)
- (parent (glib))
+ (parent (glib internal))
(files "glib-main")
;;(depends-on "glib.bin" "glib")
(import (runtime load)
(define-package (glib thread)
(parent (runtime thread))
(files "glib-thread")
- ;;(depends-on "main")
+ ;;(depends-on "glib-main")
(export ()
stop-glib-thread)
- (import (glib)
+ (import (glib internal)
with-glib-lock
assert-glib-locked
run-glib-cleanups