X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=glib%2Fglib.lisp;h=9507fefb253fdb4fa7ac37907539a9c778eebabf;hb=b1f828da8293207e141311c3ce04321ff4fe9573;hp=9fa7dcbe7c9ffb3c1a9ba7296d7a26191d4b9d78;hpb=c4533cf5f9f62b359921a6258d4960c7ab3f6b8e;p=cl-gtk2.git diff --git a/glib/glib.lisp b/glib/glib.lisp index 9fa7dcb..9507fef 100755 --- a/glib/glib.lisp +++ b/glib/glib.lisp @@ -32,7 +32,8 @@ #:g-error-condition #:g-error-condition-domain #:g-error-condition-code - #:g-error-condition-message) + #:g-error-condition-message + #:g-spawn-flags) (:documentation "Cl-gtk2-glib is wrapper for @a[http://library.gnome.org/devel/glib/]{GLib}.")) @@ -94,21 +95,20 @@ In this example, for every @code{class}, @code{(initialize-gobject-class-g-type (defmacro at-finalize ((&rest keys) &body body) `(register-finalizer (list ,@keys ',body) (lambda () ,@body))) -(eval-when (:compile-toplevel :load-toplevel :execute) - (define-foreign-library glib - (:unix (:or "libglib-2.0.so.0" "libglib-2.0.so")) - (:windows "libglib-2.0-0.dll") - (t (:default "libglib-2.0")))) - -(use-foreign-library glib) - -(eval-when (:compile-toplevel :load-toplevel :execute) - (define-foreign-library gthread - (:unix (:or "libgthread-2.0.so.0" "libgthread-2.0.so")) - (:windows "libgthread-2.0-0.dll") - (t "libgthread-2.0"))) - -(use-foreign-library gthread) +(at-init () + (eval-when (:compile-toplevel :load-toplevel :execute) + (define-foreign-library glib + (:unix (:or "libglib-2.0.so.0" "libglib-2.0.so")) + (:windows "libglib-2.0-0.dll") + (t (:default "libglib-2.0")))) + (eval-when (:compile-toplevel :load-toplevel :execute) + (define-foreign-library gthread + (:unix (:or "libgthread-2.0.so.0" "libgthread-2.0.so")) + (:windows "libgthread-2.0-0.dll") + (t "libgthread-2.0"))) + + (use-foreign-library glib) + (use-foreign-library gthread)) ;; ;; Glib Fundamentals @@ -513,5 +513,9 @@ Allocates a new string that is equal to @code{str}. Use @fun{g-free} to free it. (str (:string :free-to-foreign t))) ;omitted all GLib Utilites -;TODO: omitted Date and Time Functions +(defbitfield g-spawn-flags + :leave-descriptors-open :do-not-reap-child :search-path :stdout-to-dev-null :stderr-to-dev-null + :child-inherits-stdin :file-and-argv-zero) + +;TODO: omitted Date and Time Functions