aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-06plugins: use default port grabbing on those plugins without special requirementsAleksander Morgado
2012-08-06plugin: if no grab_port() method given, use the default oneAleksander Morgado
2012-08-06device,plugin: let the `MMPlugin' API know about `MMDevice'Aleksander Morgado
2012-08-06plugin-manager: simplify by iterating the list ourselvesAleksander Morgado
2012-08-06plugin-manager: use a double-linked list for the plugin listAleksander Morgado
2012-08-06plugin: new method to compare pluginsAleksander Morgado
Instead of providing a method to get if a plugin is requesting to get sorted last, we provide a way to comparing two plugins, compatible with the GCompareFunc required in g_list_sort().
2012-08-06plugin: remove obsolete commentAleksander Morgado
2012-08-06plugin: new `MM_PLUGIN_CUSTOM_INIT' propertyAleksander Morgado
We let plugins execute some custom initialization in the ports, specified by a `MMAsyncMethod'.
2012-08-06port-probe: fix typo in class definitionAleksander Morgado
2012-08-06core: new `MMAsyncMethod' boxed typeAleksander Morgado
Helps to bundle the async method implementation in a property.
2012-08-06plugin: new `MM_PLUGIN_FORBIDDEN_DRIVERS' propertyAleksander Morgado
It allows plugins to specify whether they cannot support ports handled by specific drivers.
2012-08-06plugin: remove no longer used `MM_PLUGIN_SORT_LAST' propertyAleksander Morgado
The behaviour previously handled by this property is now automatically handled.
2012-08-06plugin: renamed `custom-init' property to `custom-at-probe'Aleksander Morgado
The `custom-at-probe' property is just to modify the way we check for AT port support.
2012-08-06port-probe: setup the port object as a propertyAleksander Morgado
2012-08-06port-probe: no need to keep our internal copies of subsys/nameAleksander Morgado
2012-08-06port-probe: no need to keep neither physdev path nor driverAleksander Morgado
2012-08-06port-probe: don't warn if requesting info which wasn't probedAleksander Morgado
2012-08-06plugin: setup a `priv' opaque pointer for the internal dataAleksander Morgado
G_TYPE_INSTANCE_GET_PRIVATE() is really slow, so try to call it as less as possible.
2012-08-06plugin: no need to have our own `GUdevClient'Aleksander Morgado
2012-08-06plugin: no need to take care of probing tasks ourselvesAleksander Morgado
2012-08-06plugin: don't provide an additional method to cancel the probingAleksander Morgado
We'll do it with a GCancellable.
2012-08-06plugin: don't use internal task list to cancel AT probing in other probesAleksander Morgado
2012-08-06port-probe-cache: removed, no longer neededAleksander Morgado
The `MMDevice' acts as port probe cache for us now, directly storing all port probes of the same device.
2012-08-06device: get vendor/product IDsAleksander Morgado
And don't do it in MMPlugin.
2012-08-06plugin: simplify interface by passing around the device and/or port objectsAleksander Morgado
2012-08-06port-probe: use dispose() to cleanup internal object referencesAleksander Morgado
2012-08-06port-probe: new method to check if there is an AT port in a list of probesAleksander Morgado
2012-08-06device: keep a list of port probes instead of just portsAleksander Morgado
2012-08-06port-probe: rename _get_port() to _peek_port() as there is no ownership transferAleksander Morgado
2012-08-06core: merge `MMPluginBase' and `MMPlugin'Aleksander Morgado
There's no real point in maintaining a separate `MMPlugin' interface, as all the plugins will inherit from `MMPluginBase', so just merge them and simplify everything.
2012-08-06plugin-base: method to get device IDs doesn't need to be publicAleksander Morgado
Given the new pre-probing filters, the IDs are no longer retrieved by the plugins.
2012-08-06plugin-manager: simplify device/port probing logicAleksander Morgado
The plugin manager no longer needs to take care of keeping track of which probes are being run and to which physical device they correspond, as the upper layer's `MMDevice' already does this. This simplifies the internal logic quite a lot, as we can now easily suggest plugins to the remaining port probes of the same device directly.
2012-08-06plugin-manager: find port support is now only an internal operationAleksander Morgado
2012-08-06plugin-manager: remove unneeded methodsAleksander Morgado
We no longer need to query the plugin manager whether we're checking support for a specific port, as the ports are now grabbed only once in the MMDevice, and therefore we ensure that supports check is launched only once in the PluginManager for that specific port. Also, we no longer need to query the plugin manager whether we're checking support for a given device, as the logic to check when all ports of the device are probed is now maintained internally.
2012-08-06plugin-manager: define a minimum probing time of 2sAleksander Morgado
Effectively, we're now letting the kernel up to 2s to show all the ports of the device, starting from the time where the first port is exposed.
2012-08-06manager: use the new method to check support of a given full deviceAleksander Morgado
2012-08-06plugin-manager: new method to check support for a given device and all its portsAleksander Morgado
The new `mm_plugin_manager_find_device_support()' will be an async method which waits for ports to be added in the given `MMDevice'. As soon as all added ports are probed, the device support check is considered finished.
2012-08-06plugin-base: don't assume a plugin will give as supported all ports of the ↵Aleksander Morgado
device E.g. the Generic plugin will give as unsupported 'net' ports found in the device, as it doesn't know how to use them.
2012-08-06device: signal grabbed/released portsAleksander Morgado
2012-08-06device: load driver being used when first port grabbedAleksander Morgado
2012-08-06device: keep sysfs path around for loggingAleksander Morgado
2012-08-06device: split `MMDevice' creation and plugin settingAleksander Morgado
We want to be able to create the MMDevice way before we have decided which plugin to use.
2012-08-06core: compile all ports before creating the modem objectAleksander Morgado
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).
2012-08-02build: remove duplicate `--with-docs' switchAleksander Morgado
2012-08-02iface-modem: don't process signal/act updates if interface is shut downAleksander Morgado
When the interface is shut down the skeleton object no longer exists. Given that we're allowing this actions from outside the interface, we should be safe and don't assume that the caller knows exactly the state of the interface.
2012-08-02iface-modem: fix crashes due to removed contextBen Chan
2012-07-31bearer: set state as DISCONNECTING as soon as we cancel the connection sequenceAleksander Morgado
Just when we request to cancel the connection we need to set the bearer as being disconnected, so that we do not end up overwriting connection cancellation requests. Reported by: Thieu Le <thieule@chromium.org>
2012-07-31cli,libmm-glib: provide mm_manager_(peek|get)_proxy()Aleksander Morgado
peek() doesn't increase the reference count of the proxy object, while get() does it.
2012-07-31cli,libmm-glib: set default timeout on manager DBus proxyBen Chan
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.
2012-07-26iface-modem: SIM-PIN2 lock takes us to disabled state, not lockedAleksander Morgado