18 lines
512 B
C
18 lines
512 B
C
#include "protocol.h"
|
|
|
|
#include <assert.h>
|
|
#include <stddef.h>
|
|
|
|
int main(void)
|
|
{
|
|
assert(sizeof(struct owb_config_header) == 108);
|
|
assert(offsetof(struct owb_config_header, zoom_percent) == 20);
|
|
assert(offsetof(struct owb_config_header, audio_sink) == 44);
|
|
assert(sizeof(struct owb_command) == 100);
|
|
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;
|
|
}
|