<h3>Contribution description</h3>
<p>By default, the GCOAP_xxx_OPTIONS_BUF macros set aside four bytes in a message buffer to insert a Content-Format option during gcoap_finish(). However, the new Pkt Add API no longer uses gcoap_finish(). In this case, the user can save a little memory by zeroing these macros. This PR makes the macros externally configurable. After merging this PR, I will add them to the gcoap config doc group per <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="388315474" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/10566" data-hovercard-type="issue" data-hovercard-url="/RIOT-OS/RIOT/issues/10566/hovercard" href="https://github.com/RIOT-OS/RIOT/issues/10566">#10566</a>.</p>
<p>This PR undoes commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/RIOT-OS/RIOT/commit/034c78d51cb06d9d9815f2af95be442f5b2898af/hovercard" href="https://github.com/RIOT-OS/RIOT/commit/034c78d51cb06d9d9815f2af95be442f5b2898af"><tt>034c78d</tt></a> in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="324602037" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/9156" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/9156/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/9156">#9156</a> that moved the macros into gcoap.c. It is more important to include them in the new config doc group so the user is aware of them.</p>
<h3>Testing procedure</h3>
<p>Just compiling the gcoap example ensures the macros still are defined. You also could try sending and receiving a message in the example.</p>
<h3>Issues/PRs references</h3>
<p>-none-</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/10791'>https://github.com/RIOT-OS/RIOT/pull/10791</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>net/gcoap: make options buf macros configurable</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/10791/files#diff-0">sys/include/net/gcoap.h</a>
    (30)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/10791/files#diff-1">sys/net/application_layer/gcoap/gcoap.c</a>
    (9)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/10791.patch'>https://github.com/RIOT-OS/RIOT/pull/10791.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/10791.diff'>https://github.com/RIOT-OS/RIOT/pull/10791.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/10791">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YFLyBRw32ju_K04hgKHyWHxMFLhRks5vD2spgaJpZM4aDpsx">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YKT22CjrgfnHlrjSnzRpRofSN2fpks5vD2spgaJpZM4aDpsx.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/RIOT-OS/RIOT","title":"RIOT-OS/RIOT","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/RIOT-OS/RIOT"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"net/gcoap: make options buf macros configurable (#10791)"}],"action":{"name":"View Pull Request","url":"https://github.com/RIOT-OS/RIOT/pull/10791"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/10791",
"url": "https://github.com/RIOT-OS/RIOT/pull/10791",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>