X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=ef578b113068cc8993bf3728d547f194c45bf06a;hb=225796b0f46f9c21ef83833057720f66621e4c48;hp=8f852d9f1d22213e9f29c988a82e6c1a25542b97;hpb=c6a8d235b103195d3a2ccde17168d05409d7b485;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index 8f852d9f..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); @@ -381,12 +381,14 @@ namespace meshlink { * * @param confbase The directory in which MeshLink will store its configuration files. * @param name The name which this instance of the application will use in the mesh. + * @param appname The application name which will be used in the mesh. + * @param dclass The device class which will be used in the mesh. * * @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) { - void* mp = (void *)meshlink_open_with_size(confbase, name, 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; }