forked from urbit/vere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathship.h
57 lines (42 loc) · 835 Bytes
/
ship.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef U3_SHIP_H
#define U3_SHIP_H
#include "c3/c3.h"
#include "types.h"
typedef c3_d u3_ship[2];
void
u3_ship_to_bytes(c3_d sip_d[2], c3_y len_y, c3_y* buf_y);
void
u3_ship_of_bytes(u3_ship who_u, c3_y len_y, c3_y* buf_y);
u3_atom
u3_ship_to_noun(u3_ship who_u);
void
u3_ship_of_noun(u3_ship who_u, u3_noun who);
c3_c*
u3_ship_to_string(u3_ship who_u);
c3_o
u3_ships_equal(u3_ship sip_u, u3_ship sap_u);
c3_l
u3_ship_rank(u3_ship who_u);
void
u3_ship_copy(u3_ship des_u, u3_ship src_u);
/**
* Returns a ship's galaxy byte prefix.
*/
c3_y
u3_ship_czar(u3_ship who_u);
/**
* Returns a ship's star prefix.
*/
c3_s
u3_ship_king(u3_ship who_u);
/**
* Returns a ship's planet prefix.
*/
c3_w
u3_ship_duke(u3_ship who_u);
/**
* Returns a ship's moon prefix.
*/
c3_d
u3_ship_earl(u3_ship who_u);
#endif /* ifndef U3_SHIP_H */