core: compile all ports before creating the modem object

Before this, we only exported the modem to DBus when all ports were organized,
in order to make sure that we select as primary port the one we really want and
not the first AT port grabbed. Given that to get all the ports organized we also
needed to wait to get all the ports grabbed, we can now also defer the creation
of the modem object until all the ports get grabbed. This allows us to create
different types of objects based on the ports available (e.g. we can now create
QMI-supported modem objects if we see a QMI port around).
This commit is contained in:
Aleksander Morgado
2012-06-05 15:25:38 +02:00
parent 4add521a98
commit 815693661c
23 changed files with 1096 additions and 868 deletions

View File

@@ -49,6 +49,7 @@
* @MM_CORE_ERROR_TOO_MANY: Too many items.
* @MM_CORE_ERROR_NOT_FOUND: Item not found.
* @MM_CORE_ERROR_RETRY: Operation cannot yet be performed, retry later.
* @MM_CORE_ERROR_EXISTS: Item already exists.
*
* Common errors that may be reported by ModemManager.
*/
@@ -66,6 +67,7 @@ typedef enum { /*< underscore_name=mm_core_error >*/
MM_CORE_ERROR_TOO_MANY = 10, /*< nick=TooMany >*/
MM_CORE_ERROR_NOT_FOUND = 11, /*< nick=NotFound >*/
MM_CORE_ERROR_RETRY = 12, /*< nick=Retry >*/
MM_CORE_ERROR_EXISTS = 13, /*< nick=Exists >*/
} MMCoreError;
/**