]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.h
appname added, which is used by mdns as part of the service type
[meshlink] / src / meshlink.h
index 169052e800929ce73f8c2a6c449bbb45d552c572..37fe5540f41f1c78e472bfe14a7348bdacfe7b44 100644 (file)
@@ -114,11 +114,13 @@ extern const char *meshlink_strerror(meshlink_errno_t err);
  *                  After the function returns, the application is free to overwrite or free @a confbase @a.
  *  @param name     The name which this instance of the application will use in the mesh.
  *                  After the function returns, the application is free to overwrite or free @a name @a.
+ *  @param appname  The application name which will be used in the mesh.
+ *                  After the function returns, the application is free to overwrite or free @a name @a.
  *
  *  @return         A pointer to a meshlink_handle_t which represents this instance of MeshLink, or NULL in case of an error.
  *                  The pointer is valid until meshlink_close() is called.
  */
-extern meshlink_handle_t *meshlink_open(const char *confbase, const char *name);
+extern meshlink_handle_t *meshlink_open(const char *confbase, const char *name, const char* appname);
 
 /// Start MeshLink.
 /** This function causes MeshLink to open network sockets, make outgoing connections, and