projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: lttng-sessiond(8): bitness mix-up in env variable name
[lttng-tools.git]
/
src
/
common
/
payload.cpp
diff --git
a/src/common/payload.cpp
b/src/common/payload.cpp
index 0097e65bcf1191cb75cacb10dbb4f07531797a90..ef095554585c934569b04cf7da76f512d51f195d 100644
(file)
--- a/
src/common/payload.cpp
+++ b/
src/common/payload.cpp
@@
-5,13
+5,13
@@
*
*/
*
*/
-#include "payload.h"
-#include <common/dynamic-array.h>
-#include <common/dynamic-buffer.h>
-#include <common/error.h>
+#include "payload.hpp"
-static
-void release_fd_handle_ref(void *ptr)
+#include <common/dynamic-array.hpp>
+#include <common/dynamic-buffer.hpp>
+#include <common/error.hpp>
+
+static void release_fd_handle_ref(void *ptr)
{
struct fd_handle *fd_handle = (struct fd_handle *) ptr;
{
struct fd_handle *fd_handle = (struct fd_handle *) ptr;
@@
-22,29
+22,24
@@
void lttng_payload_init(struct lttng_payload *payload)
{
LTTNG_ASSERT(payload);
lttng_dynamic_buffer_init(&payload->buffer);
{
LTTNG_ASSERT(payload);
lttng_dynamic_buffer_init(&payload->buffer);
- lttng_dynamic_pointer_array_init(&payload->_fd_handles,
- release_fd_handle_ref);
+ lttng_dynamic_pointer_array_init(&payload->_fd_handles, release_fd_handle_ref);
}
}
-int lttng_payload_copy(const struct lttng_payload *src_payload,
- struct lttng_payload *dst_payload)
+int lttng_payload_copy(const struct lttng_payload *src_payload, struct lttng_payload *dst_payload)
{
int ret;
size_t i;
{
int ret;
size_t i;
- ret = lttng_dynamic_buffer_append_buffer(
- &dst_payload->buffer, &src_payload->buffer);
+ ret = lttng_dynamic_buffer_append_buffer(&dst_payload->buffer, &src_payload->buffer);
if (ret) {
goto end;
}
if (ret) {
goto end;
}
- for (i = 0; i < lttng_dynamic_pointer_array_get_count(
- &src_payload->_fd_handles);
- i++) {
+ for (i = 0; i < lttng_dynamic_pointer_array_get_count(&src_payload->_fd_handles); i++) {
struct fd_handle *new_fd_handle;
const struct fd_handle *src_fd_handle =
struct fd_handle *new_fd_handle;
const struct fd_handle *src_fd_handle =
-
(fd_handle *) lttng_dynamic_pointer_array_get_pointer(
-
&src_payload->_fd_handles, i);
+ (fd_handle *) lttng_dynamic_pointer_array_get_pointer(
+ &src_payload->_fd_handles, i);
new_fd_handle = fd_handle_copy(src_fd_handle);
if (!new_fd_handle) {
new_fd_handle = fd_handle_copy(src_fd_handle);
if (!new_fd_handle) {
@@
-80,8
+75,7
@@
void lttng_payload_clear(struct lttng_payload *payload)
lttng_dynamic_pointer_array_clear(&payload->_fd_handles);
}
lttng_dynamic_pointer_array_clear(&payload->_fd_handles);
}
-int lttng_payload_push_fd_handle(struct lttng_payload *payload,
- struct fd_handle *fd_handle)
+int lttng_payload_push_fd_handle(struct lttng_payload *payload, struct fd_handle *fd_handle)
{
int ret;
{
int ret;
@@
-90,8
+84,7
@@
int lttng_payload_push_fd_handle(struct lttng_payload *payload,
goto end;
}
goto end;
}
- ret = lttng_dynamic_pointer_array_add_pointer(
- &payload->_fd_handles, fd_handle);
+ ret = lttng_dynamic_pointer_array_add_pointer(&payload->_fd_handles, fd_handle);
if (ret) {
goto end;
}
if (ret) {
goto end;
}
This page took
0.024268 seconds
and
4
git commands to generate.