chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print kdbus path when opening fails
[elogind.git]
/
src
/
systemd
/
sd-memfd.h
diff --git
a/src/systemd/sd-memfd.h
b/src/systemd/sd-memfd.h
index ee140e48d3fa8c31906d985d77324c34a4a76050..753ed68cd8bc463bd452bf54aa47f0a3abbc97b2 100644
(file)
--- a/
src/systemd/sd-memfd.h
+++ b/
src/systemd/sd-memfd.h
@@
-26,22
+26,21
@@
#include <sys/types.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdio.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "_sd-common.h"
-
typedef struct sd_memfd sd_memfd
;
+
_SD_BEGIN_DECLARATIONS
;
-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_and_map(sd_memfd **m, size_t sz, void **p);
+int sd_memfd_new(sd_memfd **m, const char *name);
+int sd_memfd_new_from_fd(sd_memfd **m, int fd);
+int sd_memfd_new_and_map(sd_memfd **m, const char *name, 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);
-int sd_memfd_get_file(sd_memfd *m, FILE **f);
int sd_memfd_dup_fd(sd_memfd *n);
int sd_memfd_dup_fd(sd_memfd *n);
+int sd_memfd_get_file(sd_memfd *m, FILE **f);
int sd_memfd_map(sd_memfd *m, uint64_t offset, size_t size, void **p);
int sd_memfd_map(sd_memfd *m, uint64_t offset, size_t size, void **p);
@@
-51,8
+50,8
@@
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
+int sd_memfd_get_name(sd_memfd *m, char **name);
+
+_SD_END_DECLARATIONS;
#endif
#endif