Add subscription feed fetching, clean up a bit
[blerg.git] / cgi / cgi_blerg.c
index b6dcb3a..c004a7d 100644 (file)
@@ -45,7 +45,7 @@ void respond_for_range(struct blerg *b, uint64_t from, uint64_t to) {
        yajl_gen_free(g);
 }
 
-void respond_taglist(struct tag *results, int i) {
+void respond_blergref_list(struct blergref * results, int i) {
        const unsigned char *ybuf;
        unsigned int len;
        struct blerg *b;
@@ -170,12 +170,12 @@ int main(int argc, char *argv[]) {
                }
 
                int recs = 50;
-               struct tag *taglist = tag_list(info.name, 0, &recs, -1);
+               struct blergref *taglist = tag_list(info.name, 0, &recs, -1);
 
                if (recs == 0) {
                        respond_simple_data("[]", 2);
                } else {
-                       respond_taglist(taglist, recs);
+                       respond_blergref_list(taglist, recs);
                }
        } else if (strncmp(path, "/put", 4) == 0) {
                if (strcmp(request_method, "POST") != 0) {