Re: [PATCH] libmm-glib, sms: fix get|dup_data() introspection annotations

2017-09-26 Thread Aleksander Morgado
>> > > > >> > > > We need to specify explicitly that the return type is an array of >> > > > >> > > > guint8 elements. >> > > > >> > > > --- >> > > > >> > > > Hey Colin, >> > > > >> > > > Could you apply this patch and see if the generated introspection >> > > > support allows you to use the API?

Re: [PATCH] libmm-glib,sms: fix get|dup_data() introspection annotations

2017-09-26 Thread Colin Helliwell
> On 26 September 2017 at 17:52 Dan Williams wrote: > > On Tue, 2017-09-26 at 16:15 +0100, Colin Helliwell wrote: > > > > On 26 September 2017 at 16:08 Colin Helliwell > > ystems.com> wrote: > > > > > > > On 26 September 2017 at 14:23 Aleksander

Re: [PATCH] libmm-glib,sms: fix get|dup_data() introspection annotations

2017-09-26 Thread Dan Williams
On Tue, 2017-09-26 at 16:15 +0100, Colin Helliwell wrote: > > On 26 September 2017 at 16:08 Colin Helliwell > ystems.com> wrote: > > > > > On 26 September 2017 at 14:23 Aleksander Morgado > > sander.es> wrote: > > > > > > We need to specify explicitly

Re: [PATCH] libmm-glib,sms: fix get|dup_data() introspection annotations

2017-09-26 Thread Colin Helliwell
> On 26 September 2017 at 16:08 Colin Helliwell > wrote: > > > On 26 September 2017 at 14:23 Aleksander Morgado > > wrote: > > > > We need to specify explicitly that the return type is an array of > > > > guint8 elements. > > > >

Re: [PATCH] libmm-glib,sms: fix get|dup_data() introspection annotations

2017-09-26 Thread Colin Helliwell
> On 26 September 2017 at 14:23 Aleksander Morgado > wrote: > > We need to specify explicitly that the return type is an array of > > guint8 elements. > > --- > > Hey Colin, > > Could you apply this patch and see if the generated introspection support > allows

Re: Received SMS with python

2017-09-26 Thread Aleksander Morgado
On Tue, Sep 19, 2017 at 10:03 AM, wrote: > I came across an old example (get-sms.py) using dbus, but are there any > examples via gi/Glib for reading and deleting received SMSs (and any events > that can be hooked for catching the reception)? > I'm guessing the

[PATCH] libmm-glib,sms: fix get|dup_data() introspection annotations

2017-09-26 Thread Aleksander Morgado
We need to specify explicitly that the return type is an array of guint8 elements. --- Hey Colin, Could you apply this patch and see if the generated introspection support allows you to use the API? It should work as g_bytes_get_data(), i.e.:

Re: SMS get_data() with binary PDU

2017-09-26 Thread Colin Helliwell
> On 25 September 2017 at 14:30 colin.helliw...@ln-systems.com wrote: > > This may be a python question rather than MM (!) but if a PDU SMS message > contains the data DEADBEEF then I see 'get_data()[1]' give a value of 4. But > how to extract the data bytes? > I think there must be an