Top | ![]() |
![]() |
![]() |
![]() |
Assertion Utilities for GObjectAssertion Utilities for GObject — Utilities to write assertions related to GObject more easily. |
To write assertions, you need to check equality and show expected and actual values.
The utilities help you to write assertions that are related to GObject.
gboolean gcut_object_equal (const GObject *object1
,const GObject *object2
,GEqualFunc equal_func
);
Compares two GObject, object1
and object2
by
equal_func
. If equal_func
is NULL, object1
and
object2
is just only compared by memory location.
Since: 1.0.5
gchar *
gcut_object_inspect (const GObject *object
);
Inspects object
's property. The returned string should
be freed when no longer needed.
Since: 1.0.5
gchar * gcut_object_inspect_custom (const GObject *object
,GCutInspectFunction inspect_func
,gpointer user_data
);
Inspects object
by inspect_func
. The returned string
should be freed when no longer needed.
object |
a GObject. |
|
inspect_func |
a function that inspects |
|
user_data |
user data to pass to the function. |
Since: 1.0.5