#include "database.h"
#include "json.h"
#include "config.h"
+#include "configuration.h"
yajl_gen_config yajl_config = {0, 0};
void latest_tags(yajl_gen g) {
int i;
- struct things * things = latest_things(HASH_TAGS_PATH, NULL, 3);
+ struct things * things = latest_things(blergconf.hash_tags_path, NULL, 3);
unsigned int count = (things->len >= 50 ? 50 : things->len);
yajl_gen_array_open(g);
void latest_records(yajl_gen g) {
int i;
- struct things * things = latest_things(DATA_PATH, "meta", 0);
+ struct things * things = latest_things(blergconf.data_path, "meta", 0);
unsigned int count = (things->len >= 50 ? 50 : things->len);
yajl_gen_array_open(g);