json_fileinfo.c 187 Bytes
Newer Older
Julian Rother's avatar
Julian Rother committed
1 2 3 4
#include "../util.h"

char *json_fileinfo(char *path)
{
5
	return mprintf("\"hash\": \"%s\", \"duration\": %f, \"filesize\": %li",
Julian Rother's avatar
Julian Rother committed
6 7
			hashfile(path), fileduration(path), filesize(path));
}