[client,SDL] add CStringPtr type

Allows wrapping allocated C strings to automatically free them when no
longer used.
This commit is contained in:
Armin Novak
2025-12-03 14:18:43 +01:00
parent 12353ebb56
commit 29f5901e25

View File

@@ -19,8 +19,12 @@
*/
#pragma once
#include <memory>
#include <freerdp/settings_types.h>
using CStringPtr = std::unique_ptr<char, decltype(std::free)*>;
bool operator==(const MONITOR_ATTRIBUTES& l, const MONITOR_ATTRIBUTES& r);
bool operator==(const rdpMonitor& l, const rdpMonitor& r);