logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

waffle_attrib_list, waffle_attrib_list_length, waffle_attrib_list_get,

Author

ChadVersace <chad.versace@linux.intel.com>
           Former maintainer

Description

       An attribute list is a zero-terminated list of int32_t key/value pairs or a null pointer. A null pointer
       is interpreted as an empty list, whose only member is the terminal zero. For concrete examples of
       attribute lists, see the "Examples" section in waffle_config(3).

       All attribute list functions can be called before waffle has been successfully initialized with
       waffle_init(3).

       waffle_attrib_list_length()
           Return the number of key/value pairs in the list.

       waffle_attrib_list_get()
           Get the value associated with key. If the list does not contain the key, then value is not
           dereferenced. Return true if and only if the list contains the key.

       waffle_attrib_list_get_with_default()
           Equivalent to waffle_attrib_list_get() except that if the list does not contain the key then value is
           set to a default_value.

       waffle_attrib_list_update()
           Update the value associated with key. If the list does not contain the key then the list is not
           modified. Return true if and only if the list contains the key.

Errors

       All attribute list functions set the error code to WAFFLE_NO_ERROR and can be called before waffle has
       been successfully initialized with waffle_init(3).

       See waffle_error(3) for the complete list of waffle's error codes.

Issues

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

Name

       waffle_attrib_list, waffle_attrib_list_length, waffle_attrib_list_get,
       waffle_attrib_list_get_with_default, waffle_attrib_list_update - Utilities for attribute lists

See Also

waffle(7)

Synopsis

#include<waffle.h>DEPRECATEDboolwaffle_attrib_list_length(constint32_tattrib_list[]);DEPRECATEDboolwaffle_attrib_list_get(constint32_tattrib_list[],int32_tkey,int32_t*value);DEPRECATEDboolwaffle_attrib_list_get_with_default(constint32_tattrib_list[],int32_tkey,int32_t*value,int32_tdefault_value);DEPRECATEDboolwaffle_attrib_list_update(int32_tattrib_list[],int32_tkey,int32_t*value);Deprecation
       All functions above are deprecated in Waffle 1.6 and later.

See Also