As far as I know, none of these need to be exported from a shared library, and octimer.h is not published to out/ so none of them are public APIs.
> -----Original Message----- > From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev- > bounces at lists.iotivity.org] On Behalf Of Mats Wichmann > Sent: Wednesday, April 5, 2017 9:47 AM > To: iotivity-dev at lists.iotivity.org > Subject: Re: [dev] still trying to figure out API docs - octimer.h > > > octimer just today finished moving from extlibs to resource/c_common. > > so I took a look at the header for this small module, and it illustrates some > of > the comments we've had in other threads about figuring out what the API is. > > the header octimer.h has two marked-up functions, but several other > functions where it's not clear whether they're supposed to be part of the > public API or not. I can't point to the page because it's not part of the > online > set at the moment, but this is the list: > > time_t timespec_diff (const time_t after, const time_t before) > void timespec_add (time_t *to, const time_t seconds) > void checkTimeout () > long int getSeconds (struct tm *tp) > time_t getRelativeIntervalOfWeek (struct tm *tp) > time_t getSecondsFromAbsTime (struct tm *tp) > int initThread () > void * loop (void *threadid) > time_t registerTimer (const time_t seconds, int *id, TimerCallback cb) > void unregisterTimer (int id) > > The first two are the ones with markup. > > Are all of these part of the API? None? Are the not-marked-up ones to be > considered internal? Should they be partitioned off into a separate header if > so? > > > _______________________________________________ > iotivity-dev mailing list > iotivity-dev at lists.iotivity.org > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.io > tivity.org%2Fmailman%2Flistinfo%2Fiotivity- > dev&data=02%7C01%7Cdthaler%40microsoft.com%7Cf08f654cee8b4405fabc > 08d47c435c8e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636270 > 076155513361&sdata=aEwuX7rVaReTx6j3UQ0CBxkpH0F2z4SxdCGDDGeFDoQ > %3D&reserved=0
