chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
event: extend priority raneg to 64bit
[elogind.git]
/
src
/
systemd
/
sd-memfd.h
diff --git
a/src/systemd/sd-memfd.h
b/src/systemd/sd-memfd.h
index 8594a3b61fb8352ca540677dde053943c77c74a0..f4ef8f102399f555f26b8d51e27ea6a6e865651b 100644
(file)
--- a/
src/systemd/sd-memfd.h
+++ b/
src/systemd/sd-memfd.h
@@
-26,15
+26,17
@@
#include <sys/types.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdio.h>
-#i
fdef __cplusplus
-extern "C" {
-#endif
+#i
nclude "_sd-common.h"
+
+_SD_BEGIN_DECLARATIONS;
typedef struct sd_memfd sd_memfd;
int sd_memfd_new(sd_memfd **m);
int sd_memfd_make(int fd, sd_memfd **m);
typedef struct sd_memfd sd_memfd;
int sd_memfd_new(sd_memfd **m);
int sd_memfd_make(int fd, sd_memfd **m);
+int sd_memfd_new_and_map(sd_memfd **m, size_t sz, void **p);
+
void sd_memfd_free(sd_memfd *m);
int sd_memfd_get_fd(sd_memfd *m);
void sd_memfd_free(sd_memfd *m);
int sd_memfd_get_fd(sd_memfd *m);
@@
-49,8
+51,6
@@
int sd_memfd_get_sealed(sd_memfd *m);
int sd_memfd_get_size(sd_memfd *m, uint64_t *sz);
int sd_memfd_set_size(sd_memfd *m, uint64_t sz);
int sd_memfd_get_size(sd_memfd *m, uint64_t *sz);
int sd_memfd_set_size(sd_memfd *m, uint64_t sz);
-#ifdef __cplusplus
-}
-#endif
+_SD_END_DECLARATIONS;
#endif
#endif