l-snippets: now support to specify mirror's callback, and mask primary's callback