summaryrefslogtreecommitdiffstats
path: root/src/shared/serialize.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-10-16 15:56:58 +0200
committerLennart Poettering <lennart@poettering.net>2023-10-18 13:51:02 +0200
commit3b444970e609410951b4a96a9dcb648453c8b3f2 (patch)
treedde1e7e30eae0632f6541a5235c3d08734886465 /src/shared/serialize.h
parentserialize: change order of deserialize_strv() parameters (diff)
downloadsystemd-3b444970e609410951b4a96a9dcb648453c8b3f2.tar.xz
systemd-3b444970e609410951b4a96a9dcb648453c8b3f2.zip
serialize: add serialize_fd_many() helper
Diffstat (limited to 'src/shared/serialize.h')
-rw-r--r--src/shared/serialize.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/serialize.h b/src/shared/serialize.h
index b2dcfd2110..c5211191f0 100644
--- a/src/shared/serialize.h
+++ b/src/shared/serialize.h
@@ -17,6 +17,7 @@ int serialize_item_format(FILE *f, const char *key, const char *value, ...) _pri
int serialize_item_hexmem(FILE *f, const char *key, const void *p, size_t l);
int serialize_item_base64mem(FILE *f, const char *key, const void *p, size_t l);
int serialize_fd(FILE *f, FDSet *fds, const char *key, int fd);
+int serialize_fd_many(FILE *f, FDSet *fds, const char *key, const int fd_array[], size_t n_fd_array);
int serialize_usec(FILE *f, const char *key, usec_t usec);
int serialize_dual_timestamp(FILE *f, const char *key, const dual_timestamp *t);
int serialize_strv(FILE *f, const char *key, char **l);
@@ -38,6 +39,7 @@ static inline int serialize_item_tristate(FILE *f, const char *key, int value) {
int deserialize_read_line(FILE *f, char **ret);
int deserialize_fd(FDSet *fds, const char *value);
+int deserialize_fd_many(FDSet *fds, const char *value, size_t n, int *ret);
int deserialize_usec(const char *value, usec_t *ret);
int deserialize_dual_timestamp(const char *value, dual_timestamp *ret);
int deserialize_environment(const char *value, char ***environment);