]> git.ozlabs.org Git - ccan/blobdiff - tools/_infotojson/infotojson.h
changes to infotojson for storing dependencies from get_deps()
[ccan] / tools / _infotojson / infotojson.h
index 632debb32cdaac5872423f280f5040424420cd35..7b979240eaac17b751a6a886a86a2458ac26fb93 100644 (file)
 #include "ccan/talloc/talloc.h"
 #include "ccan/string/string.h"
 #include "utils.h"
+#include "tools/tools.h"
 
  struct json
  {
        char *module;
        char *title;
        char *author;
+       char **depends;
        char **desc;
  };
  
@@ -31,7 +33,7 @@ static int storejsontofile(const struct json *jsonobj, const char *jsonfile);
 static int storejsontodb(const struct json *jsonobj, const char *db);
 
 /*create json structure*/
-static struct json *createjson(char **infofile, char *author);
+static struct json *createjson(char **infofile, const char *author, const char *directory);
 
 /*Extract info from file*/
 static char **extractinfo(char **file);