[Top][All Lists]

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

Re: [gpsd-dev] C Client API Issues

From: Hal Murray
Subject: Re: [gpsd-dev] C Client API Issues
Date: Thu, 21 Jul 2016 01:46:09 -0700

address@hidden said:
> >gpsd needs a flag so close is a noop if it isn't open.
> Wouldn't such a flag would need to go into the gps_data_t structure? 

I was being sloppy when I said "flag".  I don't care how it's implemented as 
long as duplicate calls to close don't cause any problems.

> Other C interfaces tend to have an explicit init function which
> must be called before using other functions.

Often called via pthread_once if you are using threads.

These are my opinions.  I hate spam.

reply via email to

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