[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] External main loop. Was: Correct way to handle 5 Hz on

From: Lisandro Damián Nicanor Pérez Meyer
Subject: Re: [gpsd-users] External main loop. Was: Correct way to handle 5 Hz on an application
Date: Wed, 24 Oct 2018 14:15:07 -0300

El miércoles, 24 de octubre de 2018 13:59:00 -03 Gary E. Miller escribió:
> Yo Lisandro!
> On Wed, 24 Oct 2018 13:50:41 -0300
> Lisandro Damián Nicanor Pérez Meyer <address@hidden> wrote:
> > > If anyone really cared then Qt5 support could be quickly added.  Is
> > > that all you need?
> > 
> > Right now, yes. But the library name change is mandatory to allow
> > both Qt4 and Qt5 versions coexist, in case a user need both (and also
> > help distro packagers to provide both versions at the same time).
> Uh, not exactly.  You don't really need any libqgpsmm to use Qt5 with
> gpsd.

The only way libgps_core gets compiled with QTcpSocket as a socket is while 
building libqgpsmm.
> > > Right, Qt creates a main loop.  Use their loop, or another one.  No
> > > way around it.  that is how computers work.  "callbacks" are just an
> > > obfuscation of that fact.
> > 
> > And the easiest way to use Qt's loop is to use the QTcpSocket exposed
> > in struct gps_data_t to notify the user of incoming data, thus
> > avoiding gps_waiting().
> Not really avoiding it.  Just obfuscating it.
> And since you like the QTcpSocket() method, what is stopping you?  The
> code for it is in libgps_sock.c  Just uusee that.

Public API! Yes, I could copy code from there and use it, but what I want is 
to use the public gpsd API, which are gps.h and libgpsmm.h

Lisandro Damián Nicanor Pérez Meyer

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]