Age | Commit message (Collapse) | Author |
|
|
|
A 'GDBusObjectManagerClient' for a service for which there is no current
name-owner is a perfectly valid and useful object. For example, we could then
connect to the 'notify::name-owner' property to follow the life cycle of the
ModemManager process.
So, don't tie the successful creation of a 'MMManager' to the successful
creation of the internal GDBusProxy for the 'Manager1' interface. If there is
no current name owner, the GDBusProxy wouldn't be created, and instead we
would completely fail the 'MMManager' creation.
|
|
|
|
|
|
In order to have a proper conversion between DBus error names and GErrors for
our known domains, the associations need to be registered before any DBus
call attempt.
Given that the high-level API of libmm-glib has its entry point always in the
MMManager, just register them as soon as the first such object is created.
|
|
|
|
Both the ModemManager daemon and the mmcli will now include `libmm-glib.h' only.
We also handle two new special `_LIBMM_INSIDE_MM' and `LIBMM_INSIDE_MMCLI'
symbols, which if included before the `libmm-glib.h' library allow us to:
* Don't include the libmm-glib high level API in the ModemManager daemon, as
the object names would clash with those in the core.
* Define some of the methods of helper objects to be included only if compiling
ModemManager daemon or the mmcli.
|
|
|
|
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusModemTime'.
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusModemSimple'.
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusModemMessaging'.
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusModemLocation'.
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusModemCdma'.
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusModem3gppUssd'.
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusModem3gpp'.
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusModem'.
|
|
Not just a typedef of the gdbus-codegen generated `MmGdbusObject'.
|
|
|
|
|
|
peek() doesn't increase the reference count of the proxy object, while get()
does it.
|
|
This patch fixes mmcli to set the default timeout on the manager proxy
interface (MmGdbusOrgFreedesktopModemManager1) instead of MMManager
itself. The later is not a GDBusProxy object.
|
|
The library will contain a small layer of code on top of the proxies and object
manager client generated by gdbus-codegen. Therefore, the headers auto-generated
from the DBus introspection XMLs need to be distributed along with the
libmm-glib specific headers.
|