X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=ef578b113068cc8993bf3728d547f194c45bf06a;hb=e4e5a81447142da0fb1291b2d2119ed6981b89e5;hp=8271ab2f4cbfb4814009a81d2f9b61a7c8381f68;hpb=2200060c4eaadae36b8150aa33b0db7c0d74722f;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index 8271ab2f..ef578b11 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -88,7 +88,7 @@ namespace meshlink { /// A class describing a MeshLink mesh. class mesh: public meshlink_handle_t { public: - mesh() {} + mesh() : meshlink_handle_t() {} virtual ~mesh() { meshlink_close(this); @@ -387,8 +387,8 @@ namespace meshlink { * @return This function will return a pointer to a meshlink::mesh if MeshLink has succesfully set up its configuration files, NULL otherwise. */ template - static MESH* open(const char *confbase, const char *name, const char* appname, dclass_t dclass) { - void* mp = (void *)meshlink_open_with_size(confbase, name, appname, dclass, sizeof(MESH)); + static MESH* open(const char *confbase, const char *name, const char* appname, dev_class_t devclass) { + void* mp = (void *)meshlink_open_with_size(confbase, name, appname, devclass, sizeof(MESH)); return new (mp) MESH; }