Lines Matching refs:cbs
348 #define cb_invoke(cbs, name, udata, ...) \ argument
350 if (cbs->name) { \
351 (cbs->name) (udata, ## __VA_ARGS__); \
372 const traverse_cbs *cbs, in dl_detect_moves() argument
375 assert (cbs != NULL); in dl_detect_moves()
381 cb_invoke (cbs, moved, udata, in dl_detect_moves()
413 const traverse_cbs *cbs, in dl_detect_replacements() argument
416 assert (cbs != NULL); in dl_detect_replacements()
422 cb_invoke (cbs, replaced, udata, in dl_detect_replacements()
458 const traverse_cbs *cbs, in dl_detect_overwrites() argument
461 assert (cbs != NULL); in dl_detect_overwrites()
468 cb_invoke (cbs, overwritten, udata, current_iter->path, current_iter->inode); in dl_detect_overwrites()
505 const traverse_cbs *cbs, in dl_calculate() argument
514 assert (cbs != NULL); in dl_calculate()
518 need_update += dl_detect_moves (&was, &now, cbs, udata); in dl_calculate()
519 need_update += dl_detect_replacements (&was, &lst, cbs, udata); in dl_calculate()
520 dl_detect_overwrites (&pre, &lst, cbs, udata); in dl_calculate()
523 cb_invoke (cbs, names_updated, udata); in dl_calculate()
526 dl_emit_single_cb_on (was, cbs->removed, udata); in dl_calculate()
527 dl_emit_single_cb_on (now, cbs->added, udata); in dl_calculate()
529 cb_invoke (cbs, many_added, udata, now); in dl_calculate()
530 cb_invoke (cbs, many_removed, udata, was); in dl_calculate()