<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/haproxy.git/include/haproxy/api.h, branch master</title>
<subtitle>github.com: haproxy/haproxy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/'/>
<entry>
<title>REORG: global: move initcall register code in a dedicated file</title>
<updated>2021-03-26T14:28:33+00:00</updated>
<author>
<name>Amaury Denoyelle</name>
<email>adenoyelle@haproxy.com</email>
</author>
<published>2021-03-25T14:09:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=ce44482fe5d1ad320645d0ff274c0af2b187051c'/>
<id>ce44482fe5d1ad320645d0ff274c0af2b187051c</id>
<content type='text'>
Create a new module init which contains code related to REGISTER_*
macros for initcalls. init.h is included in api.h to make init code
available to all modules.

It's a step to clean up a bit haproxy.c/global.h.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create a new module init which contains code related to REGISTER_*
macros for initcalls. init.h is included in api.h to make init code
available to all modules.

It's a step to clean up a bit haproxy.c/global.h.
</pre>
</div>
</content>
</entry>
<entry>
<title>CLEANUP: include: tree-wide alphabetical sort of include files</title>
<updated>2020-06-11T08:18:59+00:00</updated>
<author>
<name>Willy Tarreau</name>
<email>w@1wt.eu</email>
</author>
<published>2020-06-09T07:07:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=b2551057af2e10584c39526dbea901213febf86c'/>
<id>b2551057af2e10584c39526dbea901213febf86c</id>
<content type='text'>
This patch fixes all the leftovers from the include cleanup campaign. There
were not that many (~400 entries in ~150 files) but it was definitely worth
doing it as it revealed a few duplicates.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes all the leftovers from the include cleanup campaign. There
were not that many (~400 entries in ~150 files) but it was definitely worth
doing it as it revealed a few duplicates.
</pre>
</div>
</content>
</entry>
<entry>
<title>CLEANUP: include: make atomic.h part of the base API</title>
<updated>2020-06-11T08:18:59+00:00</updated>
<author>
<name>Willy Tarreau</name>
<email>w@1wt.eu</email>
</author>
<published>2020-06-11T05:58:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=6784c9946341d7ace194dd78f0e0ae980ac0ffb3'/>
<id>6784c9946341d7ace194dd78f0e0ae980ac0ffb3</id>
<content type='text'>
Atomic ops are used about everywhere, let's make them part of the base
API by including atomic.h in api.h.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Atomic ops are used about everywhere, let's make them part of the base
API by including atomic.h in api.h.
</pre>
</div>
</content>
</entry>
<entry>
<title>REORG: include: move the BUG_ON() code to haproxy/bug.h</title>
<updated>2020-06-11T08:18:56+00:00</updated>
<author>
<name>Willy Tarreau</name>
<email>w@1wt.eu</email>
</author>
<published>2020-05-27T14:51:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=58017eef3f8740be7690f67e9ca5bd356b36bc00'/>
<id>58017eef3f8740be7690f67e9ca5bd356b36bc00</id>
<content type='text'>
This one used to be stored into debug.h but the debug tools got larger
and require a lot of other includes, which can't use BUG_ON() anymore
because of this. It does not make sense and instead this macro should
be placed into the lower includes and given its omnipresence, the best
solution is to create a new bug.h with the few surrounding macros needed
to trigger bugs and place assertions anywhere.

Another benefit is that it won't be required to add include &lt;debug.h&gt;
anymore to use BUG_ON, it will automatically be covered by api.h. No
less than 32 occurrences were dropped.

The FSM_PRINTF macro was dropped since not used at all anymore (probably
since 1.6 or so).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This one used to be stored into debug.h but the debug tools got larger
and require a lot of other includes, which can't use BUG_ON() anymore
because of this. It does not make sense and instead this macro should
be placed into the lower includes and given its omnipresence, the best
solution is to create a new bug.h with the few surrounding macros needed
to trigger bugs and place assertions anywhere.

Another benefit is that it won't be required to add include &lt;debug.h&gt;
anymore to use BUG_ON, it will automatically be covered by api.h. No
less than 32 occurrences were dropped.

The FSM_PRINTF macro was dropped since not used at all anymore (probably
since 1.6 or so).
</pre>
</div>
</content>
</entry>
<entry>
<title>REORG: include: move the base files from common/ to haproxy/</title>
<updated>2020-06-11T08:18:56+00:00</updated>
<author>
<name>Willy Tarreau</name>
<email>w@1wt.eu</email>
</author>
<published>2020-05-27T12:38:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=fd4bffe7c090ff316477fc245c5d3037fb32b713'/>
<id>fd4bffe7c090ff316477fc245c5d3037fb32b713</id>
<content type='text'>
The files currently covered by api-t.h and api.h (compat, compiler,
defaults, initcall) are now located inside haproxy/.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The files currently covered by api-t.h and api.h (compat, compiler,
defaults, initcall) are now located inside haproxy/.
</pre>
</div>
</content>
</entry>
<entry>
<title>CLEANUP: include: remove unused common/tools.h</title>
<updated>2020-06-11T08:18:56+00:00</updated>
<author>
<name>Willy Tarreau</name>
<email>w@1wt.eu</email>
</author>
<published>2020-06-03T15:50:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=b9082a93e5b8e5baea88062a0dfb1f6317251e7b'/>
<id>b9082a93e5b8e5baea88062a0dfb1f6317251e7b</id>
<content type='text'>
Let's definitely get rid of this old file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let's definitely get rid of this old file.
</pre>
</div>
</content>
</entry>
<entry>
<title>REORG: include: create new file haproxy/api.h</title>
<updated>2020-06-11T07:31:11+00:00</updated>
<author>
<name>Willy Tarreau</name>
<email>w@1wt.eu</email>
</author>
<published>2020-05-27T10:00:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/haproxy.git/commit/?id=7ab7031e34541bdebc6f4f88af12d0febfcceab4'/>
<id>7ab7031e34541bdebc6f4f88af12d0febfcceab4</id>
<content type='text'>
This file includes everything that must be guaranteed to be available to
any buildable file in the project (including the contrib/ subdirs). For
now it includes &lt;haproxy/api-t.h&gt; so that standard integer types and
compiler macros are known, &lt;common/initcall.h&gt; to ease dynamic registration
of init functions, and &lt;common/tools.h&gt; for a few MIN/MAX macros.

version.h should probably also be added, though at the moment it doesn't
bring a great value.

All files which currently include the ones above should now switch to
haproxy/api.h or haproxy/api-t.h instead. This should also reduce build
time by having a single guard for several files at once.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This file includes everything that must be guaranteed to be available to
any buildable file in the project (including the contrib/ subdirs). For
now it includes &lt;haproxy/api-t.h&gt; so that standard integer types and
compiler macros are known, &lt;common/initcall.h&gt; to ease dynamic registration
of init functions, and &lt;common/tools.h&gt; for a few MIN/MAX macros.

version.h should probably also be added, though at the moment it doesn't
bring a great value.

All files which currently include the ones above should now switch to
haproxy/api.h or haproxy/api-t.h instead. This should also reduce build
time by having a single guard for several files at once.
</pre>
</div>
</content>
</entry>
</feed>
