diff options
Diffstat (limited to 'src/kinds/pardes_addon.h')
| -rw-r--r-- | src/kinds/pardes_addon.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/kinds/pardes_addon.h b/src/kinds/pardes_addon.h index 9c101fee..586b03d3 100644 --- a/src/kinds/pardes_addon.h +++ b/src/kinds/pardes_addon.h @@ -275,6 +275,20 @@ typedef struct pa_tick { /* head.flags: its panes show pictures, and the core says how in their tag * (`petscii:on palette:commodore ascii:off`, Petscii, Palette, Ascii). */ #define PA_PICTURES 0x1u +/* head.flags: its state is plain and its step pure. The kind's whole state + * is the one block its `open` allocates with api->alloc (any other alloc + * is refused): bytes with no pointer or handle in them, changed only by its + * calls, each a function of the block and what the call is handed (no + * statics, no clock, randomness or file of its own: the time is tick's + * `now`, a seed api->seed's; tick is never told PA_FRAMED, a frame being + * one view's). pardes keeps the block where its own state is (its digest, a + * client's rollback copy) and dumps it as it is, `dump` uncalled and `load` + * given it at a Restore; so a client of the session runs the kind itself + * from the session's very bytes, its keys at once + * and its pictures its own, and a client without the addon shows a line. + * A kind that breaks the promise is caught: the client's state is not the + * session's, and it joins again without the kind. */ +#define PA_PLAIN 0x2u typedef struct pa_head { uint32_t size, abi; |
