chiark / gitweb /
path: add .path unit type for monitoring files
[elogind.git] / src / socket.h
index 5aa5f2783c0dd0dd9c3580abb2aa67bff1b7bce3..2067eb425428be24f67a288909534df4bed0db28 100644 (file)
@@ -62,9 +62,7 @@ typedef enum SocketType {
         _SOCKET_FIFO_INVALID = -1
 } SocketType;
 
-typedef struct SocketPort SocketPort;
-
-struct SocketPort {
+typedef struct SocketPort {
         SocketType type;
         int fd;
 
@@ -72,8 +70,8 @@ struct SocketPort {
         char *path;
         Watch fd_watch;
 
-        LIST_FIELDS(SocketPort, port);
-};
+        LIST_FIELDS(struct SocketPort, port);
+} SocketPort;
 
 struct Socket {
         Meta meta;