history_getunique
static int history_getunique(TYPE(History) *, TYPE(HistEvent) *);
retval = history_getunique(h, ev);