web docks
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user