Browse Source

Add more logging to c sink

tags/v0.0.0-test.4
Philipp Oppermann 3 years ago
parent
commit
45faaa408a
Failed to extract signature
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      examples/c-dataflow/sink.c

+ 8
- 0
examples/c-dataflow/sink.c View File

@@ -5,18 +5,24 @@

int main()
{
printf("[c sink] Hello World\n");

void *dora_context = init_dora_context_from_env();
if (dora_context == NULL)
{
fprintf(stderr, "failed to init dora context\n");
return -1;

printf("[c sink] dora context initialized\n");
}

while (1)
{
printf("[c sink] waiting for next input\n");
void *input = dora_next_input(dora_context);
if (input == NULL)
{
printf("[c sink] end of input\n");
break;
}

@@ -39,5 +45,7 @@ int main()

free_dora_context(dora_context);

printf("[c sink] finished successfully\n");

return 0;
}

Loading…
Cancel
Save