servicepoint-binding-c/example/main.c

18 lines
494 B
C
Raw Normal View History

2024-05-12 18:28:53 +02:00
#include <stdio.h>
#include "servicepoint.h"
2024-05-12 18:28:53 +02:00
int main(void) {
SPConnection *connection = sp_connection_open("localhost:2342");
2024-05-12 18:28:53 +02:00
if (connection == NULL)
return 1;
2024-10-14 22:42:45 +02:00
SPBitmap *pixels = sp_bitmap_new(SP_PIXEL_WIDTH, SP_PIXEL_HEIGHT);
sp_bitmap_fill(pixels, true);
SPCommand *command = sp_command_bitmap_linear_win(0, 0, pixels, SP_COMPRESSION_CODE_UNCOMPRESSED);
sp_connection_send_command(connection, command);
2024-05-12 18:28:53 +02:00
2024-09-07 14:11:15 +02:00
sp_connection_free(connection);
2024-05-12 18:28:53 +02:00
return 0;
}