projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: compile libhashtable as C++
[lttng-tools.git]
/
src
/
common
/
fd-handle.h
diff --git
a/src/common/fd-handle.h
b/src/common/fd-handle.h
index 4463f30055ee0996146220ac4095a513e1bc5813..36a92473a0b6ec7c2c1162e779448f0885d3d4d7 100644
(file)
--- a/
src/common/fd-handle.h
+++ b/
src/common/fd-handle.h
@@
-10,6
+10,10
@@
#include <common/macros.h>
#include <common/macros.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Wrapper around a file descriptor providing reference counting semantics.
*
/*
* Wrapper around a file descriptor providing reference counting semantics.
*
@@
-19,15
+23,12
@@
struct fd_handle;
/* Create a file descriptor handle. */
struct fd_handle;
/* Create a file descriptor handle. */
-LTTNG_HIDDEN
struct fd_handle *fd_handle_create(int fd);
/* Acquire reference to a file descriptor handle. */
struct fd_handle *fd_handle_create(int fd);
/* Acquire reference to a file descriptor handle. */
-LTTNG_HIDDEN
void fd_handle_get(struct fd_handle *handle);
/* Release reference to a file descriptor handle. */
void fd_handle_get(struct fd_handle *handle);
/* Release reference to a file descriptor handle. */
-LTTNG_HIDDEN
void fd_handle_put(struct fd_handle *handle);
/*
void fd_handle_put(struct fd_handle *handle);
/*
@@
-35,7
+36,6
@@
void fd_handle_put(struct fd_handle *handle);
*
* This function can't fail.
*/
*
* This function can't fail.
*/
-LTTNG_HIDDEN
int fd_handle_get_fd(struct fd_handle *handle);
/*
int fd_handle_get_fd(struct fd_handle *handle);
/*
@@
-46,7
+46,10
@@
int fd_handle_get_fd(struct fd_handle *handle);
* the system documentation for the semantics of dup() for this particular file
* descriptor type.
*/
* the system documentation for the semantics of dup() for this particular file
* descriptor type.
*/
-LTTNG_HIDDEN
struct fd_handle *fd_handle_copy(const struct fd_handle *handle);
struct fd_handle *fd_handle_copy(const struct fd_handle *handle);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* FS_HANDLE_H */
#endif /* FS_HANDLE_H */
This page took
0.024336 seconds
and
4
git commands to generate.