2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
8 This manual page is licensed under the Creative Commons Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0
9 US). To view a copy of this license, visit http://creativecommons.org.license/by-sa/3.0/us.
14 xmlns:xi="http://www.w3.org/2001/XInclude">
16 <!-- See http://www.docbook.org/tdg/en/html/refentry.html. -->
19 <refentrytitle>waffle_teardown</refentrytitle>
20 <manvolnum>3</manvolnum>
24 <refname>waffle_teardown</refname>
25 <refpurpose>Teardown waffle's per-process global state</refpurpose>
29 <title>Waffle Manual</title>
30 <productname>waffle</productname>
31 <xi:include href="common/author-emil.velikov.xml"/>
32 <xi:include href="common/copyright.xml"/>
33 <xi:include href="common/legalnotice.xml"/>
38 <funcsynopsisinfo><![CDATA[#include <waffle.h>]]></funcsynopsisinfo>
40 <funcdef>bool <function>waffle_teardown</function></funcdef>
47 <title>Description</title>
50 Feature test macro: <code>WAFFLE_API_VERSION >= 0x0106</code>.
51 (See <citerefentry><refentrytitle>waffle_feature_test_macros</refentrytitle><manvolnum>7</manvolnum></citerefentry>).
54 <function>waffle_teardown()</function> tears down the per-process global state of the waffle library.
57 А call to <function>waffle_teardown()</function> can fail. In the case it does the caller is advised
58 to use <function>waffle_error_get_info</function>, <function>waffle_error_get_code</function>
59 and/or <function>waffle_error_to_string</function> to retrieve the error.
61 In case of an error that differs from <errorcode>WAFFLE_ERROR_NOT_INITIALIZED</errorcode> the caller
62 should not use the Waffle API as the global state is likely to be in an undetermined/corrupt.
64 In the case of <errorcode>WAFFLE_ERROR_NOT_INITIALIZED</errorcode> one should call
65 <function>waffle_init()</function> prior to reusing Waffle.
70 <title>Return Value</title>
71 <xi:include href="common/return-value.xml"/>
77 <xi:include href="common/error-codes.xml"/>
82 <term><errorcode>WAFFLE_ERROR_NOT_INITIALIZED</errorcode></term>
85 Waffle has not been initialized with a successful call to <function>waffle_init()</function>
86 since the last call to <function>waffle_teardown()</function> or the start of the program.
95 <xi:include href="common/issues.xml"/>
98 <title>See Also</title>
102 <member><citerefentry><refentrytitle>waffle_init</refentrytitle><manvolnum>3</manvolnum></citerefentry>,</member>
103 <member><citerefentry><refentrytitle>waffle</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</member>
111 vim:tw=120 et ts=2 sw=2: