1.1 --- a/libsystypes/include/systypes/base.h Sat Dec 09 01:26:55 2023 +0100
1.2 +++ b/libsystypes/include/systypes/base.h Sat Dec 09 01:27:19 2023 +0100
1.3 @@ -73,13 +73,13 @@
1.4
1.5 /* Notifiable object types. */
1.6
1.7 -typedef struct
1.8 -{
1.9 - l4_cap_idx_t ref;
1.10 +/* Forward reference. */
1.11 +
1.12 +typedef struct notifiable_base notifiable_base_t;
1.13
1.14 -} notifiable_base_t;
1.15 +/* Structure maintaining notification state for a specific object. */
1.16
1.17 -typedef struct
1.18 +typedef struct notifiable
1.19 {
1.20 notifiable_base_t *base; /* access to the specific object */
1.21 notify_flags_t notifications; /* essential notifications */
1.22 @@ -90,6 +90,16 @@
1.23
1.24 } notifiable_t;
1.25
1.26 +/* A base structure extended by notifiable object structures like files and
1.27 + processes. */
1.28 +
1.29 +typedef struct notifiable_base
1.30 +{
1.31 + l4_cap_idx_t ref;
1.32 + notifiable_t notifiable;
1.33 +
1.34 +} notifiable_base_t;
1.35 +
1.36 /* Filesystem object properties. */
1.37
1.38 typedef unsigned long object_flags_t;