Skip to main content

Module block

Module block 

Source
Expand description

Block CRUD operations.

Functions§

create_block
Create a new block in a tab.
delete_block
Delete a block’s rows: remove it from its parent tab’s blockids and delete the Block row.
delete_parked_block
Delete a parked block’s row: it is in no tab, so there is no tab to update.
resolve_block_id_from_prefix
Resolve a block ID from an 8-character prefix within a tab.
set_block_gone_hook
Sets what the rest of srv forgets about a block that is gone; the server calls it once at startup (server::browser_pane_gone), since this layer sits below what keeps that state.