]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink++.h
Merge branch 'mesh_topology_output' into roles
[meshlink] / src / meshlink++.h
index 8271ab2f4cbfb4814009a81d2f9b61a7c8381f68..ef578b113068cc8993bf3728d547f194c45bf06a 100644 (file)
@@ -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<class MESH>
-       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;
        }