Commit Graph

2351 Commits

Author SHA1 Message Date
Aleksander Morgado
6081919744 libmm-common: make it installable
We'll install libmm-common and its headers, which will be used by libmm-glib
and the ModemManager daemon.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
d22def9309 build: let enum and error templates be completely generic
Don't include anything in the templates specific to the file to be built, like
#ifdef guards in headers or #include in sources.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
4b8b99ee96 bearer-3gpp: set ip method when connecting the bearer
Currently, assume PPP when we have an AT data port, and DHCP otherwise.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
85b14b0008 cli: new Bearer related options 2012-03-15 14:14:34 +01:00
Aleksander Morgado
9e1b2105fb cli: default to showing modem info if no action specified 2012-03-15 14:14:34 +01:00
Aleksander Morgado
c2e4d9cea7 cli: new helper to look for specific MMBearer objects 2012-03-15 14:14:34 +01:00
Aleksander Morgado
803bc339cf cli: implement bearer creating and listing based on the new MMBearer 2012-03-15 14:14:34 +01:00
Aleksander Morgado
0dec4b447e cli: don't unref cancellable if already done 2012-03-15 14:14:34 +01:00
Aleksander Morgado
55654d5b46 cli: new helper to get name of MMBearerIpMethod 2012-03-15 14:14:34 +01:00
Aleksander Morgado
dae3f95704 libmm-glib: get a list of MMBearer objects when listing bearers in the MMModem 2012-03-15 14:14:34 +01:00
Aleksander Morgado
c6d7fb893a libmm-glib: get the MMBearer object when creating it in the MMModem 2012-03-15 14:14:34 +01:00
Aleksander Morgado
dad4bb3493 libmm-glib: new MMBearer object 2012-03-15 14:14:34 +01:00
Aleksander Morgado
b7960f82ac manager: don't try to export already exported modems 2012-03-15 14:14:34 +01:00
Aleksander Morgado
7e99d9415b broadband-modem: allow 3GPP bearer connection if registered in 3GPP network 2012-03-15 14:14:34 +01:00
Aleksander Morgado
770ea53109 bearer: fail connecting try if not allowed to connect 2012-03-15 14:14:34 +01:00
Aleksander Morgado
3d1d4c42e5 bearer-list: allow iterating over the bearers in the list 2012-03-15 14:14:34 +01:00
Aleksander Morgado
00b2e2d2dd bearer: new property to define whether the bearer is allowed to connect
Modems will allow bearers to get connected once they are registered in the
network.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
48f0061355 bearer-3gpp: implement 3GPP-specific bearer
Implement basic functionality of a 3GPP based bearer, including connnection and
disconnection.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
c855e5be2d iface-modem: minor fix, remove unneeded variables in the initialization context 2012-03-15 14:14:34 +01:00
Aleksander Morgado
c133c3284d base-modem: allow retrieving non-connected data ports
Bearers will ask for data ports that can be used for connections. Right now,
only one data port is expected to be handled, but we don't impose any
restriction in the API.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
88077cbbe8 iface-modem: treat several SIM related errors as fatal
If the SIM is not inserted or the modem reports SIM failures, just abort the
initialization process. We don't want to export modems which cannot be used.

I know at least of one modem (wavecom) which supports SIM insertion while
connected, but being such a corner case, probably not worth supporting it.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
5f4655c574 helpers: implement CGDCONT reply parsing
New method to parse the PDP query reply, and build a list of structs with the
found info.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
d7f4a5e134 bearer: populate Properties used when creating the Bearer 2012-03-15 14:14:33 +01:00
Aleksander Morgado
473f45cc99 api: expose in the Bearer the dict of properties used when creating it 2012-03-15 14:14:33 +01:00
Aleksander Morgado
776cc66e2c iface-modem: implement all bearer list operations in the interface
Bearer list operations, except for Bearer creation, are so generic that the
interface itself can implement it for every object implementing the interface.
This implementation is based on a new MMBearerList object.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
0793522d28 errors: new TOO_MANY and NOT_FOUND core errors 2012-03-15 14:14:33 +01:00
Aleksander Morgado
667e3edfbd bearer: ensure only valid bearers are exported
We setup bearer export in DBus only if the input properties are the expected
ones.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
e00d3127d5 cli: implement bearer creation, deletion and listing 2012-03-15 14:14:33 +01:00
Aleksander Morgado
6a07753ba0 libmm-glib: handle bearer creation, deletion and listing 2012-03-15 14:14:33 +01:00
Aleksander Morgado
82693cf523 cli: enable printing modem info 2012-03-15 14:14:33 +01:00
Aleksander Morgado
4624846015 libmm-glib: return NULL instead of empty strings 2012-03-15 14:14:33 +01:00
Aleksander Morgado
6246944510 cli: allow option groups to force async/sync operations
Some operations are clearly asynchronous (e.g. monitoring modem state), while
others are clearly synchronous (e.g. printing modem info). So just allow option
groups to force the operation to be async or sync based on the detected action.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
ec8da67921 libmm-glib: new API method to build a string of capabilities from a bitmask 2012-03-15 14:14:33 +01:00
Aleksander Morgado
4d594c50e8 libmm-common: capabilities string builder moved from core
Keep in libmm-common the capabilities string builder.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
0384483121 nokia: start porting the Nokia plugin to the new codebase 2012-03-15 14:14:33 +01:00
Aleksander Morgado
88cc35b850 cinterion: ignore non-AT ports 2012-03-15 14:14:33 +01:00
Aleksander Morgado
68b0ac6e19 broadband-modem: by default only send init command once
Will handle sending it twice only for Nokia phones.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
c15181ae37 port-probe: always complete probing task in idle 2012-03-15 14:14:33 +01:00
Aleksander Morgado
ed83d54087 port-probe: plug small leak when reporting error in AT command response 2012-03-15 14:14:33 +01:00
Aleksander Morgado
6a3e91ee83 cli: use the new libmm-glib API fixes 2012-03-15 14:14:33 +01:00
Aleksander Morgado
7acacbbfd7 libmm-glib: simplify handling of interfaces
Avoid trying to merge all interfaces into the same set of APIs, and keep having
a specific object (proxy) for each interface handled by the GDBusObjects
reported listed by the GDBusObjectManager.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
838f38ec8c api: minor fixes in OperatorCode' and OperatorName' documentation 2012-03-15 14:14:32 +01:00
Aleksander Morgado
92cb17be4d cli: fix sync operations, initialize context 2012-03-15 14:14:32 +01:00
Aleksander Morgado
77ff2758b3 cli: logging improvements 2012-03-15 14:14:32 +01:00
Aleksander Morgado
95675e3e54 libmm-glib: fix macro implementing async ready callbacks 2012-03-15 14:14:32 +01:00
Aleksander Morgado
85a542b5c8 cli: new `--verbose' to dump debug logging 2012-03-15 14:14:32 +01:00
Aleksander Morgado
e1cba4a533 broadband-modem: implement bearer creation, deletion and listing
Currently do not limit the number of bearers that can be created.
2012-03-15 14:14:32 +01:00
Aleksander Morgado
4f4bb6b54b bearer: fix object export/unexport 2012-03-15 14:14:32 +01:00
Aleksander Morgado
a7acdcd071 sim: only unexport object if currently exported
Avoid trying to unexport the object if it was never exported before.
2012-03-15 14:14:32 +01:00
Aleksander Morgado
7030bbc586 iface-modem-3gpp: bind connection property right away 2012-03-15 14:14:32 +01:00