(in-package :gobject)
(defcfun g-value-init (:pointer g-value)
+ "Initializes the GValue @code{value} with the default value of @code{type}
+
+@arg[value]{a C pointer to the GValue structure}
+@arg[type]{an integer specifying the GType}"
(value (:pointer g-value))
(type g-type))
(defun g-value-zero (g-value)
+ "Initializes the GValue in \"unset\" state.
+
+@arg[g-value]{a C pointer to the GValue structure}"
(loop
for i from 0 below (foreign-type-size 'g-value)
do (setf (mem-ref g-value :uchar i) 0)))
(value (:pointer g-value)))
(defcfun g-value-unset (:pointer g-value)
+ "Clears the current value in @code{value} and \"unsets\" the type, releasing all resources associated with this GValue. An unset value is the same as an unitialized GValue.
+
+@arg[value]{a C pointer to the GValue structure}"
(value (:pointer g-value)))
(defcfun g-value-set-instance :void