Structs from structs.h

Core Channel Structs

Struct Name Elements Purpose
Channel Core structure for the Channel Paradigm, representing a communication or processing channel.
ChannelLinkInfo Tracks information about joined channels, including channel indices.
ChannelProperties
  • uint16_t width
  • uint16_t height
  • int32_t current_x
  • int32_t current_y
  • bool visible
  • char title[256]
  • int zOrder
  • uint32_t backgroundColor
  • uint32_t foregroundColor
  • void* textureData
  • uint16_t textureWidth, textureHeight
  • uint32_t gradientStartColor
  • uint32_t gradientEndColor
  • float gradientStartPos
  • float gradientEndPos
  • int gradientDirection
  • wchar_t fontName[128]
  • int8_t fontSize
  • bool fontBold
  • bool fontItalic
  • int borderWidth
  • int borderColor
  • bool resizable
  • bool draggable
  • void* customData
  • float opacity
  • unsigned int flags
  • float aspectRatio
  • char codeBase[256]
  • char documentBase[256]
  • bool secure
  • char encryptionMethod[32]
  • char accessControl[128]
Holds visual and interaction properties for a channel (e.g., window-like attributes).
Runtime Defines runtime behavior for a channel with function pointers (dual SDL3/Windows versions).

Graphics Structs

Struct Name Elements Purpose
BlitPacket Represents a packet for blitting operations in graphics rendering.
Button
  • SDL_FRect rect
  • SDL_Texture* texture
  • bool hovered
Represents a button UI element with a rectangle and texture.
Clip
  • int x1, y1, x2, y2
Defines a clipping rectangle for graphics operations.
Container Represents a container for graphical points with distance calculations.
ContainerChannel A channel for managing containers, fonts, and Gobs.
Gadget An interactive graphical object extending Gob, with extensive UI and event handling.
Gob
  • struct Linkable gb_node
  • struct Image gb_image
  • wchar_t gb_name[NAME_SIZE]
  • uint64_t gb_user_bits
  • struct GraphicsContext* gb_graphics
  • uint64_t gb__flags
  • uint16_t gb_depth
  • uint16_t gb_move_index
  • uint16_t* gb_mX1, *gb_mX2, *gb_mY1, *gb_mY2
  • uint16_t gb_x1, gb_y1, gb_z1, gb_x2, gb_y2, gb_z2
  • SDL_Texture* cached_texture
  • uint64_t gb_crc
A graphics object derived from an image (PNG, JPG, GIF).
GraphicsContext
  • struct Linkable gc_node
  • uint32_t gc_flags
  • uint32_t gc_extra
  • SDL_GPUDevice* gc_gpuDevice
  • SDL_GPUCommandBuffer* gc_gpuCommandBuffer
  • SDL_Rect gc_source_rect
  • SDL_Rect gc_target_rect
  • struct Screen* gc_screen
  • SDL_Window* gc_window
  • SDL_Surface* gc_window_surface
  • SDL_Renderer* gc_renderer
  • SDL_Texture* gc_texture
  • SDL_Mutex* gc_mutex
  • struct NetXecThread* gc_task
  • struct Palette* gc_palette
  • struct ColorOperation* gc_color_change
  • void** gc_pixels
  • SDL_Texture* gc_back_brush
  • struct URL* gc_url
  • uint32_t gc_fgPen
  • uint32_t gc_bgPen
Manages graphics rendering context for SDL3 (Windows x64 version also exists).
HyperView A view structure for managing graphical display with Gobs and Gadgets.
HyperWindow
  • int32_t hw_flags
  • int32_t hw_signal
  • struct Screen* hw_screen
  • uint64_t hw_window_flags
  • struct Linkable hw_gc_node
  • uint32_t hw_gc_flags
  • uint32_t hw_gc_extra
  • SDL_GPUDevice* hw_gc_gpuDevice
  • SDL_GPUCommandBuffer* hw_gc_gpuCommandBuffer
  • SDL_Rect hw_gc_source_rect
  • SDL_Rect hw_gc_target_rect
  • struct Screen* hw_gc_screen
  • SDL_Window* hw_gc_window
  • SDL_Surface* hw_gc_window_surface
  • SDL_Renderer* hw_gc_renderer
  • SDL_Texture* hw_gc_texture
  • SDL_Mutex* hw_gc_mutex
  • struct NetXecThread* hw_gc_task
  • struct Palette* hw_gc_palette
  • struct ColorOperation* hw_gc_color_change
  • void** hw_gc_pixels
  • SDL_Texture* hw_gc_back_brush
  • struct URL* hw_gc_url
  • uint32_t hw_gc_fgPen
  • uint32_t hw_gc_bgPen
  • SDL_Rect hw_rect
  • SDL_Surface* hw_surface
  • struct NetXecThread* hw_task
  • struct HyperWindow* hw_next
A window structure for SDL3 with an embedded GraphicsContext (Windows x64 version also exists).
Image
  • struct Linkable im_node
  • int64_t im_flags
  • wchar_t* im_uname
  • float acceleration_priority
  • int32_t* pixels
  • uint16_t width
  • uint16_t height
Represents an image with pixel data and metadata.
Palette A color palette with up to 255 colors.

Memory Structs

Struct Name Elements Purpose
ByteBuffer A simple buffer structure with linked list support.
DynamicBuffer
  • struct Linkable node
  • char* data
  • char* interupt_pointer
  • char* user_pointer
A dynamic buffer with interrupt and user pointers (incomplete TODO).
GlobalMemory
  • int flag
Represents global memory accessible by CPU and GPU.
GPUConstantMemory
  • int flag
Represents GPU constant memory (CPU-GPU accessible).
GPURAMInfo
  • size_t free
  • size_t total
Tracks GPU memory usage (free and total).
GPUSharedMemory
  • int flag
Represents GPU shared memory among threads.
GPUTextureMemory
  • int flag
Represents GPU texture memory (array of rectangles).
LocalMemory
  • int flag
Represents GPU local memory for thread autovariables.
MemoryAllocationRequest
  • uint64_t ma_size
  • void* ma_name
  • uint8_t ma_ram_type
  • uint8_t ma_data_type
  • uint8_t ma_dimension_type
  • uint8_t ma_flags
  • char ma_pad[24]
Request structure for memory allocation with type and flags.
MemoryChannel
  • struct Channel base
  • struct HyperLinkedList memory_list[MEMORY_TYPE_NUMBER]
  • uint64_t mc_size[MEMORY_TYPE_NUMBER]
  • uint64_t mc_allocated[MEMORY_TYPE_NUMBER]
  • uint64_t mc_remaining[MEMORY_TYPE_NUMBER]
  • uint64_t* mc_stack_top
  • uint64_t* mc_stack_bottom
  • uint64_t* mc_heap_top
  • uint64_t* mc_heap_bottom
Manages multiple memory types (heap, stack, etc.) with allocation tracking.
MemoryHandle
  • struct Linkable mh_node
  • struct Linkable mh_type_node
  • void* mh_channel
  • uint64_t mh_size
  • time_t mh_created
  • time_t mh_last_access
  • void* mh_address
  • void* mh_name
  • int64_t mh_type
Monitors and controls memory allocation within a channel.
MemoryInfo
  • char type
  • char pad[7]
  • long size
Tracks memory type and size.
MemoryRegion
  • struct Linkable node
  • uint64_t region_flags
  • uint64_t* virtual
  • uint64_t* start
  • uint64_t* end
  • uint64_t size
Defines a memory region with virtual and physical address ranges.

UI Structs

Struct Name Elements Purpose
Dispatch A complex structure for managing gadget interactions and rendering.
HyperMenu
  • struct Linkable node
  • struct Gadget gadget
  • struct GraphicsContext hmscreen_graphics
  • int totalMenus
  • int total_items
  • struct Dispatch* menuDispatch[MAX_MENU_ITEMS]
  • struct Gadget* menu_Gadget[MAX_MENU_ITEMS]
  • int current_item
  • char* itemText[MAX_MENU_ITEMS]
  • int ID
  • int current_font
  • int maximum_text_width
  • int item_width
  • int item_height
  • int item_text_xoff
  • int item_text_yoff
  • int border_width
  • int menu_pane_x, menu_pane_y
  • int menu_pane_x2, menu_pane_y2
  • int menu_pane_width, menu_pane_height
  • struct Font title_font
  • struct Font item_font
  • int title_length
  • int title_height
  • int title_width
  • char* select_text
  • char* exclude_text
  • char* short_cut_key
  • struct Color* palette
  • uint64_t sub_menu_flag
  • struct HyperMenu* sub_menu[MAX_MENU_ITEMS]
  • uint64_t exclude
  • uint64_t itemFlags
  • int max_width
  • int zoom_depth
  • int zoom_step
A menu structure with items, gadgets, and submenus, supporting graphical rendering.
MenuChannel A channel for managing multiple menus.
TitleBar
TitleBar A title bar UI element extending Gob with images and fonts for display Represents GPU constant memory (CPU-GPU accessible).
GPURAMInfo
  • size_t free
  • size_t total
Tracks GPU memory usage (free and total).
GPUSharedMemory
  • int flag
Represents GPU shared memory among threads.
GPUTextureMemory
  • int flag
Represents GPU texture memory (array of rectangles).
LocalMemory
  • int flag
Represents GPU local memory for thread autovariables.
MemoryAllocationRequest
  • uint64_t ma_size
  • void* ma_name
  • uint8_t ma_ram_type
  • uint8_t ma_data_type
  • uint8_t ma_dimension_type
  • uint8_t ma_flags
  • char ma_pad[24]
Request structure for memory allocation with type and flags.
MemoryChannel
  • struct Channel base
  • struct HyperLinkedList memory_list[MEMORY_TYPE_NUMBER]
  • uint64_t mc_size[MEMORY_TYPE_NUMBER]
  • uint64_t mc_allocated[MEMORY_TYPE_NUMBER]
  • uint64_t mc_remaining[MEMORY_TYPE_NUMBER]
  • uint64_t* mc_stack_top
  • uint64_t* mc_stack_bottom
  • uint64_t* mc_heap_top
  • uint64_t* mc_heap_bottom
Manages multiple memory types (heap, stack, etc.) with allocation tracking.
MemoryHandle
  • struct Linkable mh_node
  • struct Linkable mh_type_node
  • void* mh_channel
  • uint64_t mh_size
  • time_t mh_created
  • time_t mh_last_access
  • void* mh_address
  • void* mh_name
  • int64_t mh_type
Monitors and controls memory allocation within a channel.
MemoryInfo
  • char type
  • char pad[7]
  • long size
Tracks memory type and size.
MemoryRegion
  • struct Linkable node
  • uint64_t region_flags
  • uint64_t* virtual
  • uint64_t* start
  • uint64_t* end
  • uint64_t size
Defines a memory region with virtual and physical address ranges.

Networking Structs

Struct Name Elements Purpose
ChocolateChipServerXCookie
  • char accessToken[X_COOKIE_LENGTH]
  • char refreshToken[X_COOKIE_LENGTH]
  • char sessionId[X_COOKIE_LENGTH]
  • char user_agent[X_COOKIE_LENGTH]
  • char last_ip[X_COOKIE_LENGTH]
  • char hashed_message_code[X_COOKIE_LENGTH]
  • char encryption_vector[X_COOKIE_LENGTH/4]
  • time_t session_expiry
  • uint8_t version
  • uint8_t flags
A cookie structure for server authentication and session management.
HTTPProxy
  • struct Linkable pr_node
  • char pr_host[256]
  • __int32 pr_flags
  • __int32 pr_port
Represents an HTTP proxy configuration.
LocalAuth
  • __int32 la_flags
  • char pw_data[256]
  • __int32 port
  • __int32 pad
Local authentication data with flags and password.
SolidPod
  • struct Channel* channel
  • struct Linkable sp_node
  • char sp_webid[256]
  • char sp_base_url[256]
  • char sp_pod_uri[256]
  • char sp_username[64]
  • char sp_password[64]
  • char sp_access_token[256]
  • char sp_refresh_token[256]
  • char sp_client_id[128]
  • char sp_client_secret[128]
  • char sp_default_content_type[32]
  • char sp_pod_description[256]
  • int sp_max_size
Represents a Solid Pod for data storage with authentication.
TrustedOrigin
  • struct Linkable to_node
  • __int32 to_flags
  • __int32 to_pad
  • char to_uri[256]
  • char data_browser_path[256]
Defines a trusted origin for security purposes.
URL
  • char protocol[PROTOCOL_LEN]
  • char host[HOST_LEN]
  • char domain[HOST_LEN]
  • char subdomain[HOST_LEN]
  • char port[PORT_LEN]
  • char* file
  • char authority[AUTHORITY_LEN]
  • char query[QUERY_LEN]
  • char default_port[DEFAULT_PORT_LEN]
  • char ref[REF_LEN]
  • struct Linkable* node
  • uint64_t ur_flags
  • struct GraphicsContext* url_graphics
Represents a URL with detailed components and graphics context.
URLElements
  • char* path
  • char* parameters
  • char* fragments
Breaks down URL components into path, parameters, and fragments.
URLChannel A channel for managing URL operations with a base URL.

UI Structs

Struct Name Elements Purpose
Dispatch A complex structure for managing gadget interactions and rendering.
Font Represents a font with name, texture, and linked list support.
FontChannel A channel for managing a list of fonts.
HyperMenu
  • struct Linkable node
  • struct Gadget gadget
  • struct GraphicsContext hmscreen_graphics
  • int totalMenus
  • int total_items
  • struct Dispatch* menuDispatch[MAX_MENU_ITEMS]
  • struct Gadget* menu_Gadget[MAX_MENU_ITEMS]
  • int current_item
  • char* itemText[MAX_MENU_ITEMS]
  • int ID
  • int current_font
  • int maximum_text_width
  • int item_width
  • int item_height
  • int item_text_xoff
  • int item_text_yoff
  • int border_width
  • int menu_pane_x, menu_pane_y
  • int menu_pane_x2, menu_pane_y2
  • int menu_pane_width, menu_pane_height
  • struct Font title_font
  • struct Font item_font
  • int title_length
  • int title_height
  • int title_width
  • char* select_text
  • char* exclude_text
  • char* short_cut_key
  • struct Color* palette
  • uint64_t sub_menu_flag
  • struct HyperMenu* sub_menu[MAX_MENU_ITEMS]
  • uint64_t exclude
  • uint64_t itemFlags
  • int max_width
  • int zoom_depth
  • int zoom_step
A menu structure with items, gadgets, and submenus for graphical rendering.
MenuChannel A channel for managing multiple menus.
Screen A fullscreen display window containing child windows (SDL3/Windows versions).
ScreenChannel A channel for managing screens with display mode and window list.
SubWindow Represents a subwindow within a screen.
TitleBar A title bar UI element extending Gob with images and fonts.

Threading Structs

Struct Name Elements Purpose
NetXecThread Represents a thread for network execution (SDL3/Windows versions).
RunInfo
  • struct Linkable node
  • struct MemoryHandle* ri_memory_handle
  • volatile time_t ri_now
  • volatile time_t ri_run_lag
  • volatile uint32_t ri_flags
  • volatile uint32_t ri_runstate
  • volatile time_t ri_last_run
  • volatile time_t ri_start_time
  • volatile int32_t ri_wait_time
  • volatile uint64_t ri_iteration
  • struct NetXecThread* ri_nxthread
  • struct Channel* ri_channel
Tracks runtime information for threads or channels.
StateMachine
  • struct Linkable sm_node
  • struct Channel* channel
  • uint8_t sm_current_state
  • uint8_t sm_next_state
  • uint8_t sm_error_error
  • uint8_t max_state
  • void (*IO_BRANCH_TABLE[MAX_STATES])(int)
A state machine bound to a channel with a branch table.
StateMachineChannel A channel managing a list of state machines.
ThreadChannel Manages threads with priority levels and lists.
ThreadCreationRequest Request structure for creating a thread with function pointers.

I/O Structs

Struct Name Elements Purpose
EventChannel
  • struct Channel base
  • char buffer[4096]
  • volatile char* interrupt_ptr
  • volatile char* user_ptr
A channel for handling events with a fixed-size buffer.
IOBlock Manages I/O operations with threads, signals, and lists.
IONexus Central hub for I/O operations across system, join, process, and exception threads.
IORequest
  • void* buf
  • long nbyte
Generic I/O request structure for buffer and byte count.
IORequestClose
  • int fd
I/O request for closing a file descriptor.
IORequestOpen
  • char* path
  • int oflag
  • char mode
I/O request for opening a file with path and flags.
IORequestSeek
  • long offset
  • int where
I/O request for seeking within a file.
IORequestStat I/O request for retrieving file stats.
STDINChannel A channel for standard input with a buffer and viewport.
STDIOChannel A channel for standard I/O with memory handle.

Media Structs

Struct Name Elements Purpose
MediaChannel A channel for managing media with download, paused, run, display, and play lists.
Player
  • struct Linkable pl_node
  • int pl_flags
  • int pl_length
  • int pl_end
  • int pl_current_position
  • int pl_loop_start, loop_end
  • char pl_filename[256]
  • SDL_Window* pl_window
  • SDL_Rect* pl_source_rectangle
  • SDL_Rect* pl_destination_rectangle
  • void** pl_pixels
  • libvlc_instance_t* pl_libvlc
  • libvlc_media_t* pl_data
  • libvlc_media_player_t* pl_player_base
  • char* pl_argv[8][80]
Represents a media player with VLC integration and window properties.
VLCGob Combines a Gob with a Player for VLC media playback.

Miscellaneous Structs

Struct Name Elements Purpose
ArbitrationChannel
  • struct Channel* channel[MAXIMUM_CHANNELS]
  • struct NetXecThread process[2]
  • char mutex_bits[2][(MAXIMUM_CHANNELS >> 2)]
  • unsigned char direction_flags[2][8]
  • unsigned char target_flags[8]
Manages non-blocking join/leave control for up to 256 channels.
BranchIndex Structure for managing input/output linked lists, possibly for data flow branching.
ClockChannel
  • struct Channel base
  • uint64_t clock_flags
  • volatile time_t* clock_register
A channel for managing clock/time-related operations.
ColorChannel A sparse channel structure for color-related operations (incomplete).
ExportModule
  • int em_pod_flags
  • char em_auth[255]
  • char em_config_path[255]
  • char em_db_path[255]
  • char em_server_uri[255]
  • struct TrustedOrigin em_trust_origin[255]
Configuration for exporting a module, possibly related to Solid Pods.
Field A field within an object, supporting custom handlers and listeners.
GPSChannel A channel for GPS data with waypoints and linked channels.
GPUChannel A channel for GPU-related operations (sparse).
LinkChain A simple linked list structure with item count and pointers.
Linkable Base structure for doubly-linked list nodes.
Listener Represents an event listener with a callback.
NetXecChannel A channel for network execution with I/O threads and signals.
NetXecEvent Represents a network execution event with timing and data.
NetXecInfo
  • struct ChannelNexus* channel_nexus
  • long uptime
  • uint64_t loads[3]
  • uint64_t totalram
  • uint64_t freeram
  • uint64_t sharedram
  • uint64_t bufferram
  • uint64_t totalswap
  • uint64_t freeswap
  • uint16_t procs
  • uint64_t totalhigh
  • uint64_t freehigh
  • uint32_t mem_unit
  • uint32_t pad
System information for network execution, including memory and process stats.
NetXecSignal
  • int signal
  • int totalbits
  • int maxbits
Manages signal data with bit counts (incomplete).
NetXecSignalControl
Placeholder for signal control (empty in this version).
Object A generic object with fields and graphical/run properties.
Signal
  • uint64_t sg_bit
  • uint64_t sg_ena
  • char* sg_name
  • struct Signal* sg_next
Represents a signal with bit, enable flag, and name.
SignalChannel A channel for managing signal groups.
SignalGroup Manages a group of signals with reply functions.
StatisticsChannel A channel for statistics with a theme (incomplete).

Geometry/Math Structs

Struct Name Elements Purpose
Color
  • uint8_t alpha
  • uint8_t red
  • uint8_t green
  • uint8_t blue
Represents an RGBA color.
ColorOperation Manages color operations with foreground, background, and selection colors.
ColorTransform Defines a color transformation with start/end points and magnitude.
Cube
  • int64_t cu_width
  • int64_t cu_height
  • int64_t cu_depth
A simple 3D cube structure with dimensions.
GraphPoint A point in a graph with color operation data.
LinkablePoint A 3D point with embedded linked list support (incomplete syntax).
Orange
  • int x, y
A simple 2D point structure (possibly a placeholder or test).
Pixel
  • int64_t x, y, z
  • int64_t tFlags
A 3D pixel with position and flags (including color info).
Point
  • int64_t x, y, z
A 3D point structure.
Raster
  • int8_t* rs_data
  • int8_t rs_width
  • int8_t rs_height
  • int8_t rs_depth
  • int8_t rs_flags
A raster image with 8-bit data.
Raster16
  • int16_t* rs_data
  • int16_t rs_width
  • int16_t rs_height
  • int16_t rs_depth
  • int16_t rs_flags
A raster image with 16-bit data.
Raster32
  • int32_t* rs_data
  • int32_t rs_width
  • int32_t rs_height
  • int32_t rs_depth
  • int32_t rs_flags
A raster image with 32-bit data.
Raster64
  • int64_t* rs_data
  • int64_t rs_width
  • int64_t rs_height
  • int64_t rs_depth
  • int64_t rs_flags
A raster image with 64-bit data.
Spline
  • double sx, sy, sz
  • double x, y, z
  • double tx, ty, tz
  • double magnitde
Defines a spline for animation or movement with source and target points.
Transform
  • int* data
  • int flags
A transformation structure with data and flags (sparse).
Triple
  • char subject[256]
  • char predicate[256]
  • char object[256]
A simple RDF-style triple for Solid Pods (subject-predicate-object).
View A view structure for display with scaling and lists.
Waypoint A waypoint for GPS with a point and extension data.