projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: run format-cpp on the tree
[lttng-tools.git]
/
src
/
common
/
buffer-view.hpp
diff --git
a/src/common/buffer-view.hpp
b/src/common/buffer-view.hpp
index 7e638c05eca0837bed50c2d7e17b17f0f2d60f20..131275af2805e3279ed55c18edb270dc1a53a9ff 100644
(file)
--- a/
src/common/buffer-view.hpp
+++ b/
src/common/buffer-view.hpp
@@
-9,6
+9,7
@@
#define LTTNG_BUFFER_VIEW_H
#include <common/macros.hpp>
#define LTTNG_BUFFER_VIEW_H
#include <common/macros.hpp>
+
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@
-31,8
+32,7
@@
struct lttng_buffer_view {
* Note that a buffer view never assumes the ownership of the memory it
* references.
*/
* Note that a buffer view never assumes the ownership of the memory it
* references.
*/
-struct lttng_buffer_view lttng_buffer_view_init(
- const char *src, size_t offset, ptrdiff_t len);
+struct lttng_buffer_view lttng_buffer_view_init(const char *src, size_t offset, ptrdiff_t len);
/**
* Checks if a buffer view is safe to access.
/**
* Checks if a buffer view is safe to access.
@@
-58,9
+58,8
@@
bool lttng_buffer_view_is_valid(const struct lttng_buffer_view *view);
* Note that a buffer view never assumes the ownership of the memory it
* references.
*/
* Note that a buffer view never assumes the ownership of the memory it
* references.
*/
-struct lttng_buffer_view lttng_buffer_view_from_view(
- const struct lttng_buffer_view *src, size_t offset,
- ptrdiff_t len);
+struct lttng_buffer_view
+lttng_buffer_view_from_view(const struct lttng_buffer_view *src, size_t offset, ptrdiff_t len);
/**
* Return a buffer view referencing a subset of the memory referenced by a
/**
* Return a buffer view referencing a subset of the memory referenced by a
@@
-76,8
+75,7
@@
struct lttng_buffer_view lttng_buffer_view_from_view(
* references.
*/
struct lttng_buffer_view lttng_buffer_view_from_dynamic_buffer(
* references.
*/
struct lttng_buffer_view lttng_buffer_view_from_dynamic_buffer(
- const struct lttng_dynamic_buffer *src, size_t offset,
- ptrdiff_t len);
+ const struct lttng_dynamic_buffer *src, size_t offset, ptrdiff_t len);
/**
* Verify that `buf` contains a string starting at `str` of length
/**
* Verify that `buf` contains a string starting at `str` of length
@@
-89,7
+87,7
@@
struct lttng_buffer_view lttng_buffer_view_from_dynamic_buffer(
* NULL terminator.
*/
bool lttng_buffer_view_contains_string(const struct lttng_buffer_view *buf,
* NULL terminator.
*/
bool lttng_buffer_view_contains_string(const struct lttng_buffer_view *buf,
- const char *str,
- size_t len_with_null_terminator);
+
const char *str,
+
size_t len_with_null_terminator);
#endif /* LTTNG_BUFFER_VIEW_H */
#endif /* LTTNG_BUFFER_VIEW_H */
This page took
0.023493 seconds
and
4
git commands to generate.