projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: add back constness of public API structures
[lttng-ust.git]
/
tests
/
compile
/
test-app-ctx
/
hello.c
diff --git
a/tests/compile/test-app-ctx/hello.c
b/tests/compile/test-app-ctx/hello.c
index bff2bdb5a37774302f3e5c96bdf8458f7d7eebdb..9cc8f1a82b99209961177f0fb620dac85af9c3df 100644
(file)
--- a/
tests/compile/test-app-ctx/hello.c
+++ b/
tests/compile/test-app-ctx/hello.c
@@
-42,7
+42,7
@@
void test_inc_count(void)
}
static
}
static
-size_t test_get_size(
struct lttng_ust_ctx_field *field
__attribute__((unused)), size_t offset)
+size_t test_get_size(
void *priv
__attribute__((unused)), size_t offset)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
size_t size = 0;
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
size_t size = 0;
@@
-103,7
+103,7
@@
size_t test_get_size(struct lttng_ust_ctx_field *field __attribute__((unused)),
}
static
}
static
-void test_record(
struct lttng_ust_ctx_field *field
__attribute__((unused)),
+void test_record(
void *priv
__attribute__((unused)),
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_ust_channel_buffer *lttng_chan_buf)
{
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_ust_channel_buffer *lttng_chan_buf)
{
@@
-196,7
+196,7
@@
void test_record(struct lttng_ust_ctx_field *field __attribute__((unused)),
}
static
}
static
-void test_get_value(
struct lttng_ust_ctx_field *field
__attribute__((unused)),
+void test_get_value(
void *priv
__attribute__((unused)),
struct lttng_ust_ctx_value *value)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
struct lttng_ust_ctx_value *value)
{
int sel = test_count % _NR_LTTNG_UST_DYNAMIC_TYPES;
@@
-289,6
+289,7
@@
int init_int_handler(void)
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
+ struct lttng_ust_registered_context_provider *reg_provider;
int i, netint;
long values[] = { 1, 2, 3 };
char text[10] = "test";
int i, netint;
long values[] = { 1, 2, 3 };
char text[10] = "test";
@@
-302,7
+303,8
@@
int main(int argc, char **argv)
if (argc == 2)
delay = atoi(argv[1]);
if (argc == 2)
delay = atoi(argv[1]);
- if (lttng_ust_context_provider_register(&myprovider))
+ reg_provider = lttng_ust_context_provider_register(&myprovider);
+ if (!reg_provider)
abort();
fprintf(stderr, "Hello, World!\n");
abort();
fprintf(stderr, "Hello, World!\n");
@@
-317,7
+319,7
@@
int main(int argc, char **argv)
test_inc_count();
//usleep(100000);
}
test_inc_count();
//usleep(100000);
}
- lttng_ust_context_provider_unregister(
&my
provider);
+ lttng_ust_context_provider_unregister(
reg_
provider);
fprintf(stderr, " done.\n");
return 0;
}
fprintf(stderr, " done.\n");
return 0;
}
This page took
0.024524 seconds
and
4
git commands to generate.