chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manager: split off path lookup logic into own .c file
[elogind.git]
/
src
/
socket.h
diff --git
a/src/socket.h
b/src/socket.h
index 43d28d7e04d3a207873c41ece3c33977e410deaf..2067eb425428be24f67a288909534df4bed0db28 100644
(file)
--- a/
src/socket.h
+++ b/
src/socket.h
@@
-62,19
+62,16
@@
typedef enum SocketType {
_SOCKET_FIFO_INVALID = -1
} SocketType;
_SOCKET_FIFO_INVALID = -1
} SocketType;
-typedef struct SocketPort SocketPort;
-
-struct SocketPort {
+typedef struct SocketPort {
SocketType type;
int fd;
SocketAddress address;
char *path;
SocketType type;
int fd;
SocketAddress address;
char *path;
-
Watch fd_watch;
Watch fd_watch;
- LIST_FIELDS(SocketPort, port);
-};
+ LIST_FIELDS(
struct
SocketPort, port);
+}
SocketPort
;
struct Socket {
Meta meta;
struct Socket {
Meta meta;
@@
-82,7
+79,7
@@
struct Socket {
LIST_HEAD(SocketPort, ports);
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
LIST_HEAD(SocketPort, ports);
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
-
bool
bind_ipv6_only;
+
SocketAddressBindIPv6Only
bind_ipv6_only;
unsigned backlog;
usec_t timeout_usec;
unsigned backlog;
usec_t timeout_usec;