urbit/include/g/j.h

70 lines
1.6 KiB
C
Raw Normal View History

2014-09-04 07:44:53 +04:00
/* include/g/j.h
**
** This file is in the public domain.
*/
/** Jets.
**/
2014-09-06 00:13:24 +04:00
/* u3_cj_boot(): initialize jet system.
2014-09-04 07:44:53 +04:00
*/
void
2014-09-06 00:13:24 +04:00
u3_cj_boot(void);
2014-09-04 07:44:53 +04:00
2014-09-24 11:38:37 +04:00
/* u3_cj_clear(): clear jet table to re-register.
*/
void
u3_cj_clear(void);
2014-09-06 00:13:24 +04:00
/* u3_cj_hook():
2014-09-04 07:44:53 +04:00
**
** Execute hook from core.
*/
2014-09-06 00:13:24 +04:00
u3_noun
u3_cj_hook(u3_noun cor,
2014-09-04 07:44:53 +04:00
const c3_c* tam_c);
2014-09-17 23:56:55 +04:00
/* u3_cj_soft():
**
** Execute hook from core, without jet.
*/
u3_noun
u3_cj_soft(u3_noun cor,
const c3_c* tam_c);
2014-09-06 00:13:24 +04:00
/* u3_cj_find(): battery to driver number, or 0.
2014-09-04 07:44:53 +04:00
**
** `bat` is RETAINED by the caller.
*/
c3_l
2014-09-06 00:13:24 +04:00
u3_cj_find(u3_noun bat);
2014-09-04 07:44:53 +04:00
2014-09-06 00:13:24 +04:00
/* u3_cj_kick(): try to kick by jet. If no kick, produce u3_none.
2014-09-04 07:44:53 +04:00
**
** `axe` is RETAINED by the caller; `cor` is RETAINED iff there
** is no kick, TRANSFERRED if one.
*/
2014-09-06 00:13:24 +04:00
u3_weak
u3_cj_kick(u3_noun cor,
u3_noun axe);
2014-09-04 07:44:53 +04:00
2014-09-06 00:13:24 +04:00
/* u3_cj_kink(): kick either by jet or by nock.
2014-09-04 07:44:53 +04:00
*/
2014-09-06 00:13:24 +04:00
u3_noun
u3_cj_kink(u3_noun cor,
u3_noun axe);
2014-09-27 04:27:35 +04:00
2014-09-06 00:13:24 +04:00
/* u3_cj_mine(): register core for jets.
2014-09-04 07:44:53 +04:00
*/
2014-10-25 01:04:44 +04:00
void
2014-09-06 00:13:24 +04:00
u3_cj_mine(u3_noun clu,
u3_noun cor);
2014-10-28 20:36:22 +03:00
/* u3_cj_ream(): refresh after restoring from checkpoint.
*/
void
u3_cj_ream(void);
2014-10-31 00:40:05 +03:00
/* u3_cj_reap(): promote jet state. RETAINS.
*/
void
2014-11-04 04:02:55 +03:00
u3_cj_reap(u3_noun das, u3p(u3_ch_root) har_p);