From: Saverio Proto Date: Thu, 1 May 2014 08:15:56 +0000 (+0200) Subject: Add comments with notes X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8398c492306f3b3f8d71eeed15d14da3a67e1372;p=meshlink Add comments with notes --- diff --git a/src/meshlink.c b/src/meshlink.c index e0c11942..bab30668 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -38,6 +38,7 @@ typedef struct { #include "xalloc.h" #include "ed25519/sha512.h" +//TODO: move all of this to meshlink_handle_t static char meshlink_conf[PATH_MAX]; static char hosts_dir[PATH_MAX]; @@ -51,6 +52,7 @@ static char line[4096]; static char buffer[4096]; static size_t blen = 0; +//TODO: this can go away completely const var_t variables[] = { /* Server configuration */ {"AddressFamily", VAR_SERVER}, @@ -238,7 +240,7 @@ static bool finalize_join(meshlink_handle_t *mesh) { else if(!strcasecmp(l, "NetName")) continue; - // Check the list of known variables + // Check the list of known variables //TODO: most variables will not be available in meshlink, only name and key will be absolutely necessary bool found = false; int i; for(i = 0; variables[i].name; i++) {