NetworkManager/po
Thomas Haller 4154d9618c bluetooth: refactor BlueZ handling and let NMBluezManager cache ObjectManager data
This is a complete refactoring of the bluetooth code.

Now that BlueZ 4 support was dropped, the separation of NMBluezManager
and NMBluez5Manager makes no sense. They should be merged.

At that point, notice that BlueZ 5's D-Bus API is fully centered around
D-Bus's ObjectManager interface. Using that interface, we basically only
call GetManagedObjects() once and register to InterfacesAdded,
InterfacesRemoved and PropertiesChanged signals. There is no need to
fetch individual properties ever.

Note how NMBluezDevice used to query the D-Bus properties itself by
creating a GDBusProxy. This is redundant, because when using the ObjectManager
interfaces, we have all information already.

Instead, let NMBluezManager basically become the client-side cache of
all of BlueZ's ObjectManager interface. NMBluezDevice was mostly concerned
about caching the D-Bus interface's state, tracking suitable profiles
(pan_connection), and moderate between bluez and NMDeviceBt.
These tasks don't get simpler by moving them to a seprate file. Let them
also be handled by NMBluezManager.

I mean, just look how it was previously: NMBluez5Manager registers to
ObjectManager interface and sees a device appearing. It creates a
NMBluezDevice object and registers to its "initialized" and
"notify:usable" signal. In the meantime, NMBluezDevice fetches the
relevant information from D-Bus (although it was already present in the
data provided by the ObjectManager) and eventually emits these usable
and initialized signals.
Then, NMBlue5Manager emits a "bdaddr-added" signal, for which NMBluezManager
creates the NMDeviceBt instance. NMBluezManager, NMBluez5Manager and
NMBluezDevice are strongly cooperating to the point that it is simpler
to merge them.

This is not mere refactoring. This patch aims to make everything
asynchronously and always cancellable. Also, it aims to fix races
and inconsistencies of the state.

- Registering to a NAP server now waits for the response and delays
  activation of the NMDeviceBridge accordingly.

- For NAP connections we now watch the bnep0 interface in platform, and tear
  down the device when it goes away. Bluez doesn't send us a notification
  on D-Bus in that case.

- Rework establishing a DUN connection. It no longer uses blocking
  connect() and does not block until rfcomm device appears. It's
  all async now. It also watches the rfcomm file descriptor for
  POLLERR/POLLHUP to notice disconnect.

- drop nm_device_factory_emit_component_added() and instead let
  NMDeviceBt directly register to the WWan factory's "added" signal.
2019-09-23 12:47:37 +02:00
..
ar.po core: fix a typo 2019-09-03 11:43:56 +02:00
as.po core: fix a typo 2019-09-03 11:43:56 +02:00
be@latin.po core: fix a typo 2019-09-03 11:43:56 +02:00
bg.po core: fix a typo 2019-09-03 11:43:56 +02:00
bn_IN.po core: fix a typo 2019-09-03 11:43:56 +02:00
bs.po core: fix a typo 2019-09-03 11:43:56 +02:00
ca.po core: fix a typo 2019-09-03 11:43:56 +02:00
ChangeLog po: drop Changelog file 2018-02-07 13:32:01 +01:00
cs.po core: fix a typo 2019-09-03 11:43:56 +02:00
da.po core: fix a typo 2019-09-03 11:43:56 +02:00
de.po core: fix a typo 2019-09-03 11:43:56 +02:00
dz.po core: fix a typo 2019-09-03 11:43:56 +02:00
el.po core: fix a typo 2019-09-03 11:43:56 +02:00
en_CA.po core: fix a typo 2019-09-03 11:43:56 +02:00
en_GB.po core: fix a typo 2019-09-03 11:43:56 +02:00
eo.po core: fix a typo 2019-09-03 11:43:56 +02:00
es.po core: fix a typo 2019-09-03 11:43:56 +02:00
et.po core: fix a typo 2019-09-03 11:43:56 +02:00
eu.po core: fix a typo 2019-09-03 11:43:56 +02:00
fi.po core: fix a typo 2019-09-03 11:43:56 +02:00
fr.po core: fix a typo 2019-09-03 11:43:56 +02:00
gd.po core: fix a typo 2019-09-03 11:43:56 +02:00
gl.po core: fix a typo 2019-09-03 11:43:56 +02:00
gu.po core: fix a typo 2019-09-03 11:43:56 +02:00
he.po core: fix a typo 2019-09-03 11:43:56 +02:00
hi.po core: fix a typo 2019-09-03 11:43:56 +02:00
hr.po core: fix a typo 2019-09-03 11:43:56 +02:00
hu.po core: fix a typo 2019-09-03 11:43:56 +02:00
id.po core: fix a typo 2019-09-03 11:43:56 +02:00
it.po po: fixed typo in it.po 2019-09-03 16:04:03 +02:00
ja.po core: fix a typo 2019-09-03 11:43:56 +02:00
ka.po core: fix a typo 2019-09-03 11:43:56 +02:00
kn.po core: fix a typo 2019-09-03 11:43:56 +02:00
ko.po core: fix a typo 2019-09-03 11:43:56 +02:00
ku.po core: fix a typo 2019-09-03 11:43:56 +02:00
LINGUAS po: add Gaelic (gd) translation (bgo #761282) 2016-01-31 22:14:47 +01:00
lt.po core: fix a typo 2019-09-03 11:43:56 +02:00
lv.po core: fix a typo 2019-09-03 11:43:56 +02:00
meson.build build: add initial support for meson build system 2017-12-13 15:48:50 +01:00
mk.po core: fix a typo 2019-09-03 11:43:56 +02:00
ml.po core: fix a typo 2019-09-03 11:43:56 +02:00
mr.po core: fix a typo 2019-09-03 11:43:56 +02:00
nb.po core: fix a typo 2019-09-03 11:43:56 +02:00
ne.po core: fix a typo 2019-09-03 11:43:56 +02:00
nl.po core: fix a typo 2019-09-03 11:43:56 +02:00
oc.po core: fix a typo 2019-09-03 11:43:56 +02:00
or.po core: fix a typo 2019-09-03 11:43:56 +02:00
pa.po core: fix a typo 2019-09-03 11:43:56 +02:00
pl.po po: update Polish (pl) translation 2019-08-12 11:34:49 +02:00
POTFILES.in bluetooth: refactor BlueZ handling and let NMBluezManager cache ObjectManager data 2019-09-23 12:47:37 +02:00
POTFILES.skip po: skip translation for file in meson build directory 2018-01-12 09:51:12 +01:00
pt.po core: fix a typo 2019-09-03 11:43:56 +02:00
pt_BR.po core: fix a typo 2019-09-03 11:43:56 +02:00
ru.po core: fix a typo 2019-09-03 11:43:56 +02:00
rw.po core: fix a typo 2019-09-03 11:43:56 +02:00
sk.po core: fix a typo 2019-09-03 11:43:56 +02:00
sl.po core: fix a typo 2019-09-03 11:43:56 +02:00
sq.po core: fix a typo 2019-09-03 11:43:56 +02:00
sr.po core: fix a typo 2019-09-03 11:43:56 +02:00
sr@latin.po core: fix a typo 2019-09-03 11:43:56 +02:00
sv.po core: fix a typo 2019-09-03 11:43:56 +02:00
ta.po core: fix a typo 2019-09-03 11:43:56 +02:00
te.po core: fix a typo 2019-09-03 11:43:56 +02:00
th.po core: fix a typo 2019-09-03 11:43:56 +02:00
tr.po core: fix a typo 2019-09-03 11:43:56 +02:00
uk.po core: fix a typo 2019-09-03 11:43:56 +02:00
vi.po core: fix a typo 2019-09-03 11:43:56 +02:00
wa.po core: fix a typo 2019-09-03 11:43:56 +02:00
zh_CN.po core: fix a typo 2019-09-03 11:43:56 +02:00
zh_HK.po core: fix a typo 2019-09-03 11:43:56 +02:00
zh_TW.po core: fix a typo 2019-09-03 11:43:56 +02:00