+
+int subscription_add(const char *from, const char *to)
+ CODE:
+ RETVAL = subscription_add(from, to);
+ OUTPUT:
+ RETVAL
+
+int subscription_remove(const char *from, const char *to)
+ CODE:
+ RETVAL = subscription_remove(from, to);
+ OUTPUT:
+ RETVAL
+
+void _subscription_list(const char *author, const char *str_offset, int direction)
+ INIT:
+ HV *tmp;
+ struct blergref *list;
+ uint64_t offset;
+ int count, i;
+ PPCODE:
+ offset = strtoull(str_offset, NULL, 0);
+ list = subscription_list(author, offset, &count, direction);
+ if (list == NULL) {
+ XSRETURN_EMPTY;
+ }
+
+ i = count - 1;
+ while (i >= 0) {
+ tmp = blergref_to_perl_hash(&list[i]);
+ XPUSHs(sv_2mortal(newRV_noinc((SV*)tmp)));
+ i--;
+ }
+ free(list);
+
+int valid_tag_name(const char *name)
+
+int valid_name(const char *name)