1WAFFLE_TEARDOWN(3)               Waffle Manual              WAFFLE_TEARDOWN(3)
2
3
4

NAME

6       waffle_teardown - Teardown waffle's per-process global state
7

SYNOPSIS

9       #include <waffle.h>
10
11       bool waffle_teardown(void);
12

DESCRIPTION

14       Feature test macro: WAFFLE_API_VERSION >= 0x0106. (See
15       waffle_feature_test_macros(7)).
16
17       waffle_teardown() tears down the per-process global state of the waffle
18       library.
19
20       А call to waffle_teardown() can fail. In the case it does the caller is
21       advised to use waffle_error_get_info, waffle_error_get_code and/or
22       waffle_error_to_string to retrieve the error. In case of an error that
23       differs from WAFFLE_ERROR_NOT_INITIALIZED the caller should not use the
24       Waffle API as the global state is likely to be in an
25       undetermined/corrupt. In the case of WAFFLE_ERROR_NOT_INITIALIZED one
26       should call waffle_init() prior to reusing Waffle.
27

RETURN VALUE

29       Functions whose return type is bool return true on success and false on
30       failure. Functions whose return type is a pointer return NULL on
31       failure. Use waffle_error_get_info(3) to get information about any
32       errors.
33

ERRORS

35       See waffle_error(3) for the complete list of waffle's error codes.
36
37       WAFFLE_ERROR_NOT_INITIALIZED
38           Waffle has not been initialized with a successfull call to
39           waffle_init() since the last call to waffle_teardown() or the start
40           of the program.
41

ISSUES

43       Please report bugs or and feature requests to
44       https://gitlab.freedesktop.org/mesa/waffle/issues.
45

SEE ALSO

47           waffle_init(3),
48           waffle(7).
49

AUTHOR

51       Emil Velikov <emil.l.velikov@gmail.com>
52           Contributor
53
55       Copyright © 2013 Intel
56
57       This manual page is licensed under the Creative Commons
58       Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To
59       view a copy of this license, visit
60       http://creativecommons.org.license/by-sa/3.0/us.
61
62
63
64
65waffle                            04/01/2020                WAFFLE_TEARDOWN(3)
Impressum