unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* NOTMUCH_STATUS_LAST_STATUS problematic across additive library upgrades
@ 2015-12-07 22:54 Daniel Kahn Gillmor
  2015-12-07 23:37 ` Carl Worth
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Kahn Gillmor @ 2015-12-07 22:54 UTC (permalink / raw)
  To: notmuch mailing list

hi notmuch folks--

notmuch_status_t is an enum that counts up to
NOTMUCH_STATUS_LAST_STATUS.

This is fine for work within the library itself, but it seems
problematic to expose it to users of the library.

In particular, if a user builds against version X of the library, then
version X+1 is released with a new status code (but no
backward-incompatible API/ABI changes that would require an SONAME
bump), then the value of NOTMUCH_STATUS_LAST_STATUS would change, but
the application using notmuch wouldn't know about it.

Is this something we should be concerned about?  I don't know why or
when a library user might try to make use of NOTMUCH_STATUS_LAST_STATUS,
but it's also exposed in the go bindings, so it's leaking out quite a
bit.

   --dkg

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

end of thread, other threads:[~2015-12-08 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 22:54 NOTMUCH_STATUS_LAST_STATUS problematic across additive library upgrades Daniel Kahn Gillmor
2015-12-07 23:37 ` Carl Worth
2015-12-08  0:19   ` Daniel Kahn Gillmor
2015-12-08  5:22     ` Carl Worth
2015-12-08 15:55       ` Daniel Kahn Gillmor

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).