/** json structure * This file contains definition of json structure **/ #include #include #include #include #include #include #include #include #include #include #include "database.h" #include "ccan/talloc/talloc.h" #include "ccan/string/string.h" #include "utils.h" struct json { char *module; char *title; char *author; char **desc; }; /* Function for storing json structure to file given struct json*/ int storejsontofile(struct json *jsonobj, char *jsonfile); /*Function to store in database*/ int storejsontodb(struct json *jsonobj, char *db); /*create json structure*/ struct json * createjson(char **infofile, char *author); /*Extract info from file*/ char ** extractinfo(char **file);