All of lore.kernel.org
 help / color / mirror / Atom feed
* ELL API changes before stabilizing
@ 2016-10-05 21:45 Mat Martineau
  2016-10-05 22:33 ` Denis Kenzior
  0 siblings, 1 reply; 11+ messages in thread
From: Mat Martineau @ 2016-10-05 21:45 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 1297 bytes --]


We will soon reach a point where breaking changes to the ELL APIs will get 
a lot more painful - changes already create a headache for the handful of 
projects we know about. Given that, I took a look over the public headers 
to see if there were any obvious adjustments to be made, and only found a 
few issues that jumped out at me.


1. timeout: extra nanosecond APIs with extremely_long_function_names. We 
could scrap the *_with_nanosecond calls and include nanoseconds in 
l_timeout_create and l_timeout_modify.


2. timeout: Why not use time_t for seconds? Yeah, 4 billion seconds should 
be enough for anyone, but the same argument could be made for the 
underlying struct timespec that's used for the system calls.


3. main: We recently changed l_main_exit() to be a cleanup function. It 
used to trigger an exit action. It would be more consistent to name the 
function for what it does rather than when it should be run 
(l_main_cleanup()?).


4. uintset: Why does uintset_new() create a set with min == 1? C 
programmers are more likely to assume it's 0-indexed. Maybe we don't need 
both l_uintset_new and l_uintset_new_from_range. One function that takes 
min and max seems sufficient.


Anything else you've noticed?

--
Mat Martineau
Intel OTC

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-10-07 18:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05 21:45 ELL API changes before stabilizing Mat Martineau
2016-10-05 22:33 ` Denis Kenzior
2016-10-06 16:36   ` Mat Martineau
2016-10-06 17:03     ` Denis Kenzior
2016-10-06 18:15       ` Mat Martineau
2016-10-06 18:21         ` Marcel Holtmann
2016-10-07 18:42           ` Mat Martineau
2016-10-06 18:22         ` Gix, Brian
2016-10-06 18:51         ` Denis Kenzior
2016-10-07 18:05           ` Mat Martineau
2016-10-07 18:41             ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.