web docks

This commit is contained in:
2026-07-18 11:33:47 +05:00
parent 2c166a40e3
commit d3872d60ef
12 changed files with 900 additions and 11 deletions

View File

@@ -7,7 +7,8 @@ int main(void)
{
assert(sizeof(struct owb_config_header) == 36);
assert(sizeof(struct owb_command) == 100);
assert(sizeof(struct owb_shared_frames) == 40);
assert(offsetof(struct owb_shared_frames, pixels) == 40);
assert(owb_shared_size(2, 2) == 72);
assert(offsetof(struct owb_command, text) == 36);
assert(OWB_CONFIG_MAGIC != OWB_COMMAND_MAGIC);
return 0;

View File

@@ -69,7 +69,7 @@ int main(int argc, char **argv)
shared->width = width;
shared->height = height;
shared->stride = width * 4;
shared->slots = OWB_SHARED_FRAME_SLOTS;
shared->slot_count = OWB_SHARED_FRAME_SLOTS;
posix_spawn_file_actions_t actions;
posix_spawn_file_actions_init(&actions);
posix_spawn_file_actions_adddup2(&actions, control[1], STDIN_FILENO);

View File

@@ -84,7 +84,7 @@ int main(int argc, char **argv)
shared->width = width;
shared->height = height;
shared->stride = width * 4;
shared->slots = OWB_SHARED_FRAME_SLOTS;
shared->slot_count = OWB_SHARED_FRAME_SLOTS;
posix_spawn_file_actions_t actions;
posix_spawn_file_actions_init(&actions);
posix_spawn_file_actions_adddup2(&actions, control[1], STDIN_FILENO);