servicepoint-binding-c/example/src/undefined.c
Vinzenz Schroeter 41fbdbf3a3
All checks were successful
Rust / build-gnu-apt (pull_request) Successful in 2m0s
Rust / build-size-gnu-unstable (pull_request) Successful in 41s
object name to snake case
2025-06-28 18:50:26 +02:00

22 lines
557 B
C

#include <stdio.h>
#include "servicepoint.h"
#include "helpers.h"
/// DO NOT DO ANY OF THIS!
int main(void) {
BitmapCommand *bmcmd = sp_bitmap_command_new(sp_bitmap_new_max_sized(), 0, 0, COMPRESSION_CODE_UNCOMPRESSED);
BitVecCommand *bvcmd = (BitVecCommand *) bmcmd;
sp_bit_vec_command_free(bvcmd);
uint8_t *data = calloc(1024, 1);
struct GenericCommand generic = {
.tag = COMMAND_TAG_BRIGHTNESS_GRID,
.data = {.null = data},
};
sock_init();
sp_udp_socket_send_command(sock, &generic);
return 0;
}