int main(int argc, char *argv[]) {
// Open a new meshlink instance.
- meshlink_handle_t *mesh = meshlink_open("basic_conf", "foo", "basic");
+ meshlink_handle_t *mesh = meshlink_open("basic_conf", "foo", "basic", DEV_CLASS_BACKBONE);
if(!mesh) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
// Check that the name is ignored now, and that we still are "foo".
- mesh = meshlink_open("basic_conf", "bar", "basic");
+ mesh = meshlink_open("basic_conf", "bar", "basic", DEV_CLASS_BACKBONE);
if(!mesh) {
fprintf(stderr, "Could not open configuration for foo a second time\n");
return 1;
int main(int argc, char *argv[]) {
// Open a new meshlink instance.
- meshlink::mesh *mesh = meshlink::open<meshlink::mesh>("basicpp_conf", "foo", "basicpp");
+ meshlink::mesh *mesh = meshlink::open<meshlink::mesh>("basicpp_conf", "foo", "basicpp", DEV_CLASS_BACKBONE);
if(!mesh) {
cerr << "Could not initialize configuration for foo\n";
return 1;
// Check that the name is ignored now, and that we still are "foo".
- mesh = meshlink::open<meshlink::mesh>("basic_conf", "bar", "basicpp");
+ mesh = meshlink::open<meshlink::mesh>("basic_conf", "bar", "basicpp", DEV_CLASS_BACKBONE);
if(!mesh) {
cerr << "Could not open configuration for foo a second time\n";
return 1;
int main(int argc, char *argv[]) {
// Open two new meshlink instance.
- meshlink_handle_t *mesh1 = meshlink_open("channels_conf.1", "foo", "channels");
+ meshlink_handle_t *mesh1 = meshlink_open("channels_conf.1", "foo", "channels", DEV_CLASS_BACKBONE);
if(!mesh1) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
}
- meshlink_handle_t *mesh2 = meshlink_open("channels_conf.2", "bar", "channels");
+ meshlink_handle_t *mesh2 = meshlink_open("channels_conf.2", "bar", "channels", DEV_CLASS_BACKBONE);
if(!mesh2) {
fprintf(stderr, "Could not initialize configuration for bar\n");
return 1;
int main(int argc, char *argv[]) {
// Open two new meshlink instance.
- meshlink_handle_t *mesh1 = meshlink_open("import_export_conf.1", "foo", "import-export");
+ meshlink_handle_t *mesh1 = meshlink_open("import_export_conf.1", "foo", "import-export", DEV_CLASS_BACKBONE);
if(!mesh1) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
}
- meshlink_handle_t *mesh2 = meshlink_open("import_export_conf.2", "bar", "import-export");
+ meshlink_handle_t *mesh2 = meshlink_open("import_export_conf.2", "bar", "import-export", DEV_CLASS_BACKBONE);
if(!mesh2) {
fprintf(stderr, "Could not initialize configuration for bar\n");
return 1;
int main(int argc, char *argv[]) {
// Open two new meshlink instance.
- meshlink_handle_t *mesh1 = meshlink_open("invite_join_conf.1", "foo", "invite-join");
+ meshlink_handle_t *mesh1 = meshlink_open("invite_join_conf.1", "foo", "invite-join", DEV_CLASS_BACKBONE);
if(!mesh1) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
}
- meshlink_handle_t *mesh2 = meshlink_open("invite_join_conf.2", "bar", "invite-join");
+ meshlink_handle_t *mesh2 = meshlink_open("invite_join_conf.2", "bar", "invite-join", DEV_CLASS_BACKBONE);
if(!mesh2) {
fprintf(stderr, "Could not initialize configuration for bar\n");
return 1;
int main(int argc, char *argv[]) {
// Open two new meshlink instance.
- meshlink_handle_t *mesh1 = meshlink_open("sign_verify_conf.1", "foo", "sign-verify");
+ meshlink_handle_t *mesh1 = meshlink_open("sign_verify_conf.1", "foo", "sign-verify", DEV_CLASS_BACKBONE);
if(!mesh1) {
fprintf(stderr, "Could not initialize configuration for foo\n");
return 1;
}
- meshlink_handle_t *mesh2 = meshlink_open("sign_verify_conf.2", "bar", "sign-verify");
+ meshlink_handle_t *mesh2 = meshlink_open("sign_verify_conf.2", "bar", "sign-verify", DEV_CLASS_BACKBONE);
if(!mesh2) {
fprintf(stderr, "Could not initialize configuration for bar\n");
return 1;