Hi Enrico, hi all, Here is the link to the SMS plugin for libpurple, that I have reworked by replacing g_dbus_proxy calls with libmm-glib functions: https://source.puri.sm/Librem5/purple-mm-sms
Any comments and suggestions regarding the code are appreciated. In order to receive SMS properly, the following ModemManager fix is needed: https://gitlab.freedesktop.org/mobile-broadband/ModemManager/merge_requests/102 Cheers, Andrea On 5/8/19 9:27 PM, Andrea Schäfer wrote: > > Hi Enrico, > > Thanks for your reply. I hope I will be able to finish my code by the > end of this week. I will send a link to the repo in the mailing-list > then, so that you take a look at the code. > > > Cheers, > Andrea > > > On 5/8/19 7:25 PM, Enrico Mioso wrote: >> Hello Andrea, >> hello all!! >> Andrea, can you explain me how you arrived to that code? I am curioust >> to learn!! And understand. So I would appreciate some explanations. >> >> I did the same this way: >> ... >> mmobject = agh_mm_get_mmobject(mstate, modem); >> ... >> messaging = mm_object_get_modem_messaging(mmobject); >> ... >> >> signal_id = g_signal_connect(messaging, "added", >> G_CALLBACK(agh_mm_modem_sms_added), mstate); >> >> ... >> but then I faced your same issue. >> BTW, due to the "marshaller" used in this case, I am not able to pass >> user data (e.g.: mstate). >> Is there a way around this? >> May we change the marshaller used in MM? >> >> thank you all!! >> >> Enrico > _______________________________________________ > ModemManager-devel mailing list > ModemManager-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel > _______________________________________________ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel