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

NAME

6       waffle_attrib_list, waffle_attrib_list_length, waffle_attrib_list_get,
7       waffle_attrib_list_get_with_default, waffle_attrib_list_update -
8       Utilities for attribute lists
9

SYNOPSIS

11       #include <waffle.h>
12
13       DEPRECATED bool waffle_attrib_list_length(const int32_t attrib_list[]);
14
15       DEPRECATED bool waffle_attrib_list_get(const int32_t attrib_list[],
16                                              int32_t key, int32_t *value);
17
18       DEPRECATED bool
19                                                           waffle_attrib_list_get_with_default(const int32_t attrib_list[],
20                                                           int32_t key,
21                                                           int32_t *value,
22                                                           int32_t default_value);
23
24       DEPRECATED bool waffle_attrib_list_update(int32_t attrib_list[],
25                                                 int32_t key, int32_t *value);
26
27   Deprecation
28       All functions above are deprecated in Waffle 1.6 and later.
29

DESCRIPTION

31       An attribute list is a zero-terminated list of int32_t key/value pairs
32       or a null pointer. A null pointer is interpreted as an empty list,
33       whose only member is the terminal zero. For concrete examples of
34       attribute lists, see the "Examples" section in waffle_config(3).
35
36       All attribute list functions can be called before waffle has been
37       successfully initialized with waffle_init(3).
38
39       waffle_attrib_list_length()
40           Return the number of key/value pairs in the list.
41
42       waffle_attrib_list_get()
43           Get the value associated with key. If the list does not contain the
44           key, then value is not dereferenced. Return true if and only if the
45           list contains the key.
46
47       waffle_attrib_list_get_with_default()
48           Equivalent to waffle_attrib_list_get() except that if the list does
49           not contain the key then value is set to a default_value.
50
51       waffle_attrib_list_update()
52           Update the value associated with key. If the list does not contain
53           the key then the list is not modified. Return true if and only if
54           the list contains the key.
55

ERRORS

57       All attribute list functions set the error code to WAFFLE_NO_ERROR and
58       can be called before waffle has been successfully initialized with
59       waffle_init(3).
60
61       See waffle_error(3) for the complete list of waffle's error codes.
62

ISSUES

64       Please report bugs or and feature requests to
65       https://gitlab.freedesktop.org/mesa/waffle/issues.
66

SEE ALSO

68       waffle(7)
69

AUTHOR

71       Chad Versace <chad.versace@linux.intel.com>
72           Maintainer
73
75       Copyright © 2013 Intel
76
77       This manual page is licensed under the Creative Commons
78       Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To
79       view a copy of this license, visit
80       http://creativecommons.org.license/by-sa/3.0/us.
81
82
83
84
85waffle                            04/01/2020             WAFFLE_ATTRIB_LIST(3)
Impressum