osmo-gsm-tester/src/osmo_gsm_tester
Neels Hofmeyr 47de6b0a24 ofono/dbus: detach from signals as appropriate
In the dbus_connect() code path, return the subscription token.

In the Modem class, use this token to disconnect signal callbacks when an
interface is removed.

Generalize the signal connect/disconnect handling: have one tuple defining all
signals and their handler functions, add generalized loop to attach them. Store
all subscription tokens in a dict of lists, any number of signal callbacks per
general interface name. When an interface is announced to be removed from
ofono, detach all signals for that interface implicitly.

So far this only handles the MessageManager interface's IncomingMessage signal,
but others will likely follow soon.

Fixes: OS#2242
Change-Id: I0939ef414bc599ee8742df48da04d8d9569d00ba
2017-05-11 12:33:00 +02:00
..
templates bts config: tweak logging parameters 2017-05-07 01:14:58 +00:00
__init__.py initial import 2017-03-28 12:37:17 +02:00
bts_model.py core implementation 2017-04-08 15:43:19 +02:00
bts_octphy.py Prepend LD_LIBRARY_PATH instead of overwritting it 2017-05-08 16:34:30 +02:00
bts_osmotrx.py Prepend LD_LIBRARY_PATH instead of overwritting it 2017-05-08 16:34:30 +02:00
bts_sysmo.py fix sysmobts: also use username for dsp firmware reload command 2017-05-04 15:52:08 +02:00
config.py config: resolve real paths from symlinks, add paths debug logging 2017-05-04 20:56:48 +00:00
log.py log.py: add a log target option to omit the list of deeper origins 2017-05-08 10:12:25 +00:00
ofono_client.py ofono/dbus: detach from signals as appropriate 2017-05-11 12:33:00 +02:00
osmo_ctrl.py trying to get sysmobts to work and various details 2017-04-10 05:09:23 +02:00
osmo_nitb.py Log network activity using tcpdump for nitb interface 2017-05-10 13:48:31 +02:00
pcaprecorder.py Log network activity using tcpdump for nitb interface 2017-05-10 13:48:31 +02:00
process.py fix prompt() 2017-05-08 10:10:03 +00:00
resource.py improve logging for resource allocation 2017-05-08 12:50:42 +02:00
schema.py core implementation 2017-04-08 15:43:19 +02:00
suite.py suite: Terminate processes in LIFO order 2017-05-08 16:57:53 +02:00
template.py core implementation 2017-04-08 15:43:19 +02:00
test.py propagate Timeout class to test scope, use in debug suite 2017-05-08 13:06:58 +02:00
trial.py run dir: add a second log file containing a non-debug log 2017-05-10 13:08:52 +00:00
util.py util: simplify listdict 2017-05-11 12:33:00 +02:00