Commit 8074ac2b authored by Aurelio Colosimo's avatar Aurelio Colosimo

wr_data assigned to ppsi->ext_data (ext-specific data)

parent c295ac91
......@@ -4,6 +4,7 @@
#include <ppsi/ppsi.h>
#include <ppsi/diag.h>
#include "wr-api.h"
/*
* This file deals with opening and closing an instance. The channel
......@@ -42,6 +43,8 @@ struct pp_runtime_opts default_rt_opts = {
.ttl = PP_DEFAULT_TTL,
};
static struct wr_data_t wr_data; /* white rabbit specific global data */
int pp_open_instance(struct pp_instance *ppi, struct pp_runtime_opts *rt_opts)
{
if (rt_opts)
......@@ -49,6 +52,8 @@ int pp_open_instance(struct pp_instance *ppi, struct pp_runtime_opts *rt_opts)
else
OPTS(ppi) = &default_rt_opts;
ppi->ext_data = &wr_data;
ppi->state = PPS_INITIALIZING;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment