u3: wires up the %trim event in the daemon

This commit is contained in:
Joe Bryan 2019-09-27 12:58:14 -07:00
parent c5ab5c6c5b
commit 7a62373308

View File

@ -142,6 +142,19 @@ _reck_kick_term(u3_pier* pir_u, u3_noun pox, c3_l tid_l, u3_noun fav)
c3_assert(!"not reached"); return 0;
}
/* _reck_kick_arvo(): apply loopback effects.
*/
static u3_noun
_reck_kick_arvo(u3_pier* pir_u, u3_noun pox, u3_noun fav)
{
if ( c3__trim == u3h(fav) ) {
u3_pier_work(pir_u, pox, fav);
return c3y;
}
u3z(pox); u3z(fav); return c3n;
}
/* _reck_kick_behn(): apply packet network outputs.
*/
static u3_noun
@ -326,6 +339,10 @@ _reck_kick_spec(u3_pier* pir_u, u3_noun pox, u3_noun fav)
else switch ( it_pox ) {
default: u3z(pox); u3z(fav); return c3n;
case c3__arvo: {
return _reck_kick_arvo(pir_u, pox, fav);
} break;
case c3__behn: {
return _reck_kick_behn(pir_u, pox, fav);
} break;