mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-28 06:46:35 -04:00
Add API to retrieve and iterate over the resources list of a client
To complement on the new resource created signal, this allows to iterate over the existing resources of a client. Signed-off-by: Giulio Camuffo <giulio.camuffo@kdab.com> Reviewed-by: Jonas Ådahl <jadahl@gmail.com> [Pekka: added empty lines, init ret in for_each_helper()] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
c55c1d787c
commit
2f617250d2
5 changed files with 85 additions and 7 deletions
|
|
@ -311,6 +311,17 @@ typedef int (*wl_dispatcher_func_t)(const void *, void *, uint32_t,
|
|||
|
||||
typedef void (*wl_log_func_t)(const char *, va_list) WL_PRINTF(1, 0);
|
||||
|
||||
/** \enum wl_iterator_result
|
||||
*
|
||||
* This enum represents the return value of an iterator function.
|
||||
*/
|
||||
enum wl_iterator_result {
|
||||
/** Stop the iteration */
|
||||
WL_ITERATOR_STOP,
|
||||
/** Continue the iteration */
|
||||
WL_ITERATOR_CONTINUE
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue