Variant.newObjectPath

glib.variant.Variant newObjectPath(string objectPath)

Creates a D-Bus object path #GVariant with the contents of object_path. object_path must be a valid D-Bus object path. Use [glib.variant.Variant.isObjectPath] if you're not sure.

Parameters

objectPatha normal C nul-terminated string

Returns

a floating reference to a new object path #GVariant instance