urbit/include/g/j.h

48 lines
1.1 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-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-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-04 07:44:53 +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-09-06 00:13:24 +04:00
u3_noun
u3_cj_mine(u3_noun clu,
u3_noun cor);
2014-09-04 07:44:53 +04:00