2024-09-07 12:23:32 +02:00
|
|
|
//! C API wrapper for the [servicepoint](https://docs.rs/servicepoint/latest/servicepoint/) crate.
|
|
|
|
//!
|
|
|
|
//! # Examples
|
|
|
|
//!
|
|
|
|
//! Make sure to check out [this GitHub repo](https://github.com/arfst23/ServicePoint) as well!
|
|
|
|
//!
|
|
|
|
//! ```C
|
|
|
|
//! #include <stdio.h>
|
|
|
|
//! #include "servicepoint.h"
|
|
|
|
//!
|
|
|
|
//! int main(void) {
|
|
|
|
//! SPConnection *connection = sp_connection_open("172.23.42.29:2342");
|
|
|
|
//! if (connection == NULL)
|
|
|
|
//! return 1;
|
|
|
|
//!
|
|
|
|
//! SPPixelGrid *pixels = sp_pixel_grid_new(SP_PIXEL_WIDTH, SP_PIXEL_HEIGHT);
|
|
|
|
//! sp_pixel_grid_fill(pixels, true);
|
|
|
|
//!
|
|
|
|
//! SPCommand *command = sp_command_bitmap_linear_win(0, 0, pixels, Uncompressed);
|
2024-09-07 14:44:25 +02:00
|
|
|
//! while (sp_connection_send_command(connection, sp_command_clone(command)));
|
2024-09-07 12:23:32 +02:00
|
|
|
//!
|
2024-09-07 14:53:16 +02:00
|
|
|
//! sp_command_free(command);
|
2024-09-07 14:11:15 +02:00
|
|
|
//! sp_connection_free(connection);
|
2024-09-07 12:23:32 +02:00
|
|
|
//! return 0;
|
|
|
|
//! }
|
|
|
|
//! ```
|
|
|
|
|
2024-09-07 13:22:41 +02:00
|
|
|
pub use crate::bit_vec::*;
|
|
|
|
pub use crate::brightness_grid::*;
|
|
|
|
pub use crate::byte_slice::*;
|
|
|
|
pub use crate::command::*;
|
|
|
|
pub use crate::connection::*;
|
|
|
|
pub use crate::constants::*;
|
|
|
|
pub use crate::cp437_grid::*;
|
|
|
|
pub use crate::packet::*;
|
|
|
|
pub use crate::pixel_grid::*;
|
2024-09-07 12:23:32 +02:00
|
|
|
|
|
|
|
mod bit_vec;
|
|
|
|
mod brightness_grid;
|
2024-09-07 13:22:41 +02:00
|
|
|
mod byte_slice;
|
2024-09-07 12:23:32 +02:00
|
|
|
mod command;
|
|
|
|
mod connection;
|
2024-09-07 13:22:41 +02:00
|
|
|
mod constants;
|
|
|
|
mod cp437_grid;
|
2024-09-07 12:23:32 +02:00
|
|
|
mod packet;
|
|
|
|
mod pixel_grid;
|