From 990656cf6d2a1d0f5b971584f27e9178ee8700ab Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Sun, 24 Apr 2022 17:49:19 +0300 Subject: [PATCH] Add struct XServerInterpretedAddress `XServerInterpretedAddress` can be passed into `XHostAddress.address` with `.family=FamilyServerInterpreted`. --- CHANGELOG.md | 2 ++ src/xlib.rs | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0a0e09..1849ec1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- XServerInterpretedAddress struct ### Changed - Updated pkg-config to 0.3.24 diff --git a/src/xlib.rs b/src/xlib.rs index b889cb7..05fa737 100644 --- a/src/xlib.rs +++ b/src/xlib.rs @@ -2249,6 +2249,15 @@ pub struct XHostAddress { pub address: *mut c_char, } +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct XServerInterpretedAddress { + pub typelength: c_int, + pub valuelength: c_int, + pub type_: *mut c_char, + pub value: *mut c_char, +} + #[derive(Debug, Clone, Copy, PartialEq)] #[repr(C)] pub struct XIconSize {