Exemple #1
0
// native returns a pointer to the underlying GDBusConnection.
func (v *DBusConnection) native() *C.GDBusConnection {
	if v == nil || v.GObject == nil {
		return nil
	}
	p := unsafe.Pointer(v.GObject)
	return C.toGDBusConnection(p)
}
Exemple #2
0
func (v *DBusConnection) toDBusConnection() *C.GDBusConnection {
	if v == nil {
		return nil
	}
	return C.toGDBusConnection(unsafe.Pointer(v.GObject))
}