Commit Graph
59 Commits
Author SHA1 Message Date
Aleksander Morgado c440f121cc tests: rename 3GPP SMS part tester 2013-10-25 19:47:19 +02:00
Aleksander Morgado e529cd3212 build: ignore plugin testers 2013-10-10 08:34:52 +02:00
Christian Persch 6eec45cb73 gitignore: Updated to ignore GIR and VAPI bindings generated files
Bug #705641.
2013-08-14 13:30:35 +02:00
Aleksander Morgado 8d0ec0fc24 huawei: new helper to parse ^NDISSTATQRY responses 2013-07-11 09:39:21 +02:00
Aleksander Morgado ce6777c53b Revert "systemd: simplify unit file"
This reverts commit 91898aa8b0.

See additional comments in the following bug:

  https://bugzilla.gnome.org/show_bug.cgi?id=701229

Basically, 'mask' and 'unmask' operations are not the ones we should be using
or suggesting; and the Alias= for the DBus file is the correct way to go.
2013-06-23 11:47:41 +02:00
Aleksander Morgado a43cecb456 api,header: setup and export MM version symbols in the API 2013-06-13 10:04:49 +02:00
Aleksander Morgado 0c7265de29 build: new strict & permissive polkit policies in '--with-polkit'
The '--with-polkit' configure switch now supports more options than just yes
or no:

 * strict: Active user needs to explicitly authenticate when peforming an
   operation defined in the Device.Control, Messaging, Location or Contacts
   interfaces. Polkit policy is set to 'auth_self_keep'.

 * permissive: Active user doesn't need to explicitly authenticate when
   peforming an operation defined in the Device.Control, Messaging, Location or
   Contacts interfaces. Polkit policy is set to 'yes'.

 * none: don't use polkit.

If '--with-polkit' is not given, usage will be automatically decided based on
the presence of the Polkit headers in the system (if headers found, strict
policy will be applied, otherwise none).

Also:
 * '--with-polkit' is equivalent to '--with-polkit=strict'
 * '--with-polkit=yes' is equivalent to '--with-polkit=strict'
 * '--with-polkit=no' is equivalent to '--with-polkit=none'
 * '--without-polkit' is equivalent to '--with-polkit=none'

By default, ModemManager will always apply the strict policy, in order to
protect the user from unwanted operations in the modem (e.g. getting the PIN
locked forever after wrong PIN/PUK unlock attempts).

https://bugzilla.gnome.org/show_bug.cgi?id=701740
2013-06-13 09:21:52 +02:00
Aleksander Morgado 91898aa8b0 systemd: simplify unit file
Avoid setting up the Alias rule, which was a helper to let us 'disable' the
systemd service including dbus-activations. Without the Alias, 'disable' will
still let starting ModemManager through dbus-activation. If you really want to
fully disallow starting MM also through dbus-activation, you should 'mask' and
'unmask' the service.

E.g.:
 $ sudo systemctl mask ModemManager
ln -s '/dev/null' '/etc/systemd/system/ModemManager.service'

 $ sudo mmcli -L
error: couldn't find the ModemManager process in the bus

 $ sudo systemctl unmask ModemManager
rm '/etc/systemd/system/ModemManager.service'

 $ sudo mmcli -L
No modems were found

https://bugzilla.gnome.org/show_bug.cgi?id=701229
2013-06-06 10:07:17 +02:00
Aleksander Morgado 162d96b116 test-modem-helpers-qmi: new unit tests to check the 'current-capabilities' logic
Based on Dan's tests with QMI modems.
2013-04-11 09:17:13 +02:00
Aleksander Morgado bee388098c build: ignore 'modepref' test 2013-03-13 11:17:45 +01:00
Aleksander Morgado 222825d642 systemd: include systemd unit file support
Allow having systemd handling the life cycle of the ModemManager process.
2013-02-06 17:32:59 +01:00
Martyn Russell 89723c7ef2 docs,ModemManager: include the missing manpage
(aleksander) I messed up the integration of commit bc49794848, this should fix
it.
2012-10-24 10:44:58 +02:00
Aleksander Morgado 3228ca10be docs: don't rebuild types every time 2012-10-04 10:17:13 +02:00
Aleksander Morgado b6d628b3a1 build: merge libmm-common into libmm-glib
It's pointless to have libmm-common around, just merge it into libmm-glib and
make ModemManager depend on libmm-glib directly. At the end, the non-common
stuff in libmm-glib is really minimal.
2012-10-04 10:17:05 +02:00
Aleksander Morgado ca14de0605 doc: setup gtk-doc generation for libmm-glib 2012-10-01 23:44:47 +02:00
Aleksander Morgado cb881a2653 uml290: git-ignore generated program 2012-06-26 12:15:59 +02:00
Aleksander Morgado 6fa3f0b0d7 build: provide pkg-config files for ModemManager, libmm-common and libmm-glib 2012-05-24 09:59:53 +02:00
Aleksander Morgado 961290ddd7 build: autogenerate `mm-errors-quarks.c'
We define custom nicks for each error enum, matching the DBus error entry that
we want to have with each of them.
2012-03-16 14:53:23 +01:00
Aleksander Morgado c4581af5d9 docs: set ModemManager' as module name instead of mm' 2012-03-16 14:53:17 +01:00
Aleksander Morgado ca9104dcb4 build: generate PNG files automatically from DIA files 2012-03-16 14:53:17 +01:00
Aleksander Morgado 7d9d003324 build: rename the binary from modem-manager' to ModemManager' 2012-03-16 14:53:17 +01:00
Aleksander Morgado c55b5d097e marshallers: integrate them into the daemon compilation 2012-03-16 14:53:16 +01:00
Aleksander Morgado 2522acf899 tests,sms: refactor SMS part related tests
Now using the MMSmsPart setup.
2012-03-16 14:28:15 +01:00
Aleksander Morgado a9c406e3c0 cinterion: new Cinterion-specific source directory 2012-03-16 14:28:13 +01:00
Aleksander Morgado ec98955362 build: ignore built files 2012-03-15 14:15:04 +01:00
Aleksander Morgado b7938448ea libmm-common,tests: new tests for the key/value parser 2012-03-15 14:15:04 +01:00
Aleksander Morgado dcecb94631 libmm-common,libmm-glib: new object to handle properties in simple Connect()
Instead of using type unsafe properties passed to the connect() call, we build
a new object which does the handling of the properties to be passed.
2012-03-15 14:14:37 +01:00
Aleksander Morgado 9962f5cbde bearer: new `bearer-state' property 2012-03-15 14:14:35 +01:00
Aleksander Morgado 8f450d82b6 cli: initial cli implementation 2012-03-15 14:14:25 +01:00
Aleksander Morgado 1e79a2d292 build: install DBus service and data files for the new API 2012-03-15 14:14:19 +01:00
Aleksander Morgado 49bbaf8e31 build: disable autogeneration of the 0.5 API header file
But keep it around as a static file, while we do the migration to the new
interface.
2012-03-15 14:14:19 +01:00
Aleksander Morgado 3b976c4399 docs: added new man page for the modem-manager daemon 2012-03-15 14:14:19 +01:00
Aleksander Morgado 09f40c8369 docs: setup generation of gtk-doc based DBus API documentation
It includes gdbus-codegen generated API documentation, plus the common Enums,
Flags and Errors, which will also be used in libmm-glib.
2012-03-15 14:14:19 +01:00
Aleksander Morgado ade484826c libmm-common: setup new library, with the gdbus-codegen generated code
This library will not (probably) be installable, but will share the GDBus
and new Enum/Flag/Error type support between the core daemon and the new
libmm-glib library.
2012-03-15 14:14:18 +01:00
Aleksander Morgado bb7311f27c build: improve project bootstrapping
Align autogen.sh with the one in NM:
  * Just calling autoreconf once
  * Using autopoint from GNU gettext
  * Enabling the use of NOCONFIGURE
2012-03-15 14:14:18 +01:00
Aleksander Morgado ff5ea7b76a build: setup autogeneration of names header for the new API
The `include/ModemManager-names.h' autogenerated header includes the list of
Interface, Method, Signal and Property names defined in the DBus API.
2012-03-15 14:14:18 +01:00
Aleksander Morgado 365b906a3e build: setup header generator in its own include/Makefile
Also move helper files to the new `build-aux' directory.
2012-03-15 14:14:18 +01:00
Aleksander Morgado 21162a366a at-serial-port: implement built-in echo/garbage removal
We expect the responses to start always with <CR><LF>. We just remove anything
that comes before that.
2012-02-16 10:27:22 +01:00
Dan Williams ad29e8dd88 trivial: update .gitgnore 2012-01-17 13:12:31 -06:00
Dan Williams 3dd4cdaf2b libwmc: beginning of bits for WMC-based devices like UML290 2011-09-17 13:27:54 -05:00
Nathan Williams c717dbd928 sms: add unit tests
Second in a series. Builds on the previous by actually unit-testing
the sms_parse_pdu() function. Note that the dcf1 test does not pass
as the code is currently written.
2011-07-25 01:18:22 -05:00
Guido Günther 26e7b3f8ce trivial: update .gitignore 2011-07-21 15:16:44 -05:00
Aleksander Morgado d73673c265 build: add include dir to .gitignore 2011-05-10 11:50:40 +02:00
Dan Williams e16a58e54b core: add basic QCDM serial port unit tests
Test that a Version Info request/response works as expected, and
add a testcase for a bug where specific Sierra CnS responses to
the Version Info request do not properly return an error when
attempting to parse the response as a QCDM packet.  Fix for the
second thing forthcoming.
2010-10-14 00:10:46 -05:00
Dan Williams 9e94dd5b61 gsm: add GSM 03.38 encoding/decoding functions and testcases 2010-09-02 19:29:05 -05:00
Dan Williams c11c0431ff trivial: gitignore updates 2010-03-12 15:34:27 -08:00
Dan Williams f6c514897e Merge remote branch 'origin/master' into qcdm 2010-03-01 09:07:05 -08:00
Dan Williams 588bb65ea6 trivial: add policy file to gitignore 2010-02-27 12:49:07 -08:00
Dan Williams bffb332481 core: install correct dbus permissions for with-polkit/without-polkit 2010-02-27 06:25:45 -08:00
Dan Williams 9d8e892ffe Merge remote branch 'origin/master' into qcdm 2010-02-20 12:49:22 -08:00