Method

PhoshMMDBusObjectget_modem

Declaration [src]

PhoshMMDBusModem*
phosh_mm_dbus_object_get_modem (
  PhoshMMDBusObject* object
)

Description [src]

Gets the PhoshMMDBusModem instance for the D-Bus interface org.freedesktop.ModemManager1.Modem on object, if any.

Return value

Type: PhoshMMDBusModem

A PhoshMMDBusModem that must be freed with g_object_unref() or NULL if object does not implement the interface.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.