]> git.ozlabs.org Git - ccan/blobdiff - tools/_infotojson/infotojson.h
Deleting duplicate grab_file in tools/
[ccan] / tools / _infotojson / infotojson.h
index 5fb4ad3d42c64cd0064719250e34bf628b626af2..632debb32cdaac5872423f280f5040424420cd35 100644 (file)
@@ -13,6 +13,7 @@
 #include <sqlite3.h>
 #include "database.h"
 #include "ccan/talloc/talloc.h"
+#include "ccan/string/string.h"
 #include "utils.h"
 
  struct json
  };
  
  /* Function for storing json structure to file given struct json*/ 
-int storejsontofile(struct json *jsonobj, char *jsonfile);
+static int storejsontofile(const struct json *jsonobj, const char *jsonfile);
 
 /*Function to store in database*/
-int storejsontodb(struct json *jsonobj, char *db);
+static int storejsontodb(const struct json *jsonobj, const char *db);
 
 /*create json structure*/
-struct json * createjson(char **infofile, char *author);
+static struct json *createjson(char **infofile, char *author);
 
 /*Extract info from file*/
-char ** extractinfo(char **file);
+static char **extractinfo(char **file);