FreeRDP
SDL2/sdl_types.hpp
1
20
#pragma once
21
22
#include <freerdp/freerdp.h>
23
24
class
SdlContext
;
25
26
typedef
struct
27
{
28
rdpClientContext common;
29
SdlContext
* sdl;
30
}
sdl_rdp_context
;
31
32
static
inline
SdlContext
* get_context(
void
* ctx)
33
{
34
if
(!ctx)
35
return
nullptr
;
36
auto
sdl =
static_cast<
sdl_rdp_context
*
>
(ctx);
37
return
sdl->sdl;
38
}
39
40
static
inline
SdlContext
* get_context(rdpContext* ctx)
41
{
42
if
(!ctx)
43
return
nullptr
;
44
auto
sdl =
reinterpret_cast<
sdl_rdp_context
*
>
(ctx);
45
return
sdl->sdl;
46
}
SdlContext
Definition:
SDL2/sdl_freerdp.hpp:47
sdl_rdp_context
Definition:
SDL2/sdl_types.hpp:27
client
SDL
SDL2
sdl_types.hpp
Generated by
1.9.1