1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Internal definitions for events
5 * Copyright 2021 Google LLC
6 * Written by Simon Glass <sjg@chromium.org>
9 #ifndef __event_internal_h
10 #define __event_internal_h
13 #include <linux/list.h>
16 * struct event_spy - a spy that watches for an event of a particular type
19 * @type: Event type to subscribe to
20 * @func: Function to call when the event is sent
21 * @ctx: Context to pass to the function
24 struct list_head sibling_node;
32 struct list_head spy_head;