Skip to content

Support of Avoid::ConnRef::setRoutingCheckpoints method #32

@Qoolerus

Description

@Qoolerus

Hello and Merry Christmas!

My task requires checkpoints to build valid edges between nodes.
In the Adaptagrams/libavoid documentation, I see that such functionality exists.

I also see that the connector.idl contains a defenition of the Checkpoint interface, but the ConnRef interface does not have a corresponding method:

void setRoutingCheckpoints([Const, Ref] sequence<Checkpoint> checkpoints)

I tried to add it, but in the end, it seems, that i run into the limitations of the WebIDL Binder, which generates the glue.cpp function

void EMSCRIPTEN_KEEPALIVE emscripten_bind_ConnRef_setRoutingCheckpoints_1(Avoid::ConnRef* self, const Avoid::Checkpoint* checkpoints) {
  self->setRoutingCheckpoints(*checkpoints);
}

where checkpoints argument has type const Avoid::Checkpoint* instead of const std::vector<Checkpoint>&, which later (compile stage) results in a type error when calling the libavoid library's native function self->setRoutingCheckpoints.

Have you ever encountered this problem? Do you have any thoughts on how to solve it? Thank you!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions