]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus: Make sure sd_bus_error and sd_bus_error_map structs are named
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 May 2025 15:20:57 +0000 (17:20 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 May 2025 15:21:37 +0000 (17:21 +0200)
Otherwise we can't forward declare them.

Split out of #37344

src/systemd/sd-bus-protocol.h

index 45e5f2e31758d97deae4c1d0c52e12c57e2e415f..292b03e0bf61b2699deaa772d2f3071ecc8ee68c 100644 (file)
@@ -115,13 +115,13 @@ typedef struct sd_bus_slot sd_bus_slot;
 typedef struct sd_bus_creds sd_bus_creds;
 typedef struct sd_bus_track sd_bus_track;
 
-typedef struct {
+typedef struct sd_bus_error {
         const char *name;
         const char *message;
         int _need_free;
 } sd_bus_error;
 
-typedef struct {
+typedef struct sd_bus_error_map {
         const char *name;
         int code;
 } sd_bus_error_map;