FreeRDP
sdl_utils.cpp File Reference
#include <fstream>
#include <cassert>
#include "sdl_utils.hpp"
#include "sdl_freerdp.hpp"
#include <SDL.h>
#include <winpr/path.h>
#include <freerdp/version.h>

Macros

#define STR(x)   #x
 
#define EV_CASE_STR(x)
 

Functions

const char * sdl_event_type_str (Uint32 type)
 
const char * sdl_error_string (Uint32 res)
 
BOOL sdl_log_error_ex (Uint32 res, wLog *log, const char *what, const char *file, size_t line, const char *fkt)
 
BOOL sdl_push_user_event (Uint32 type,...)
 
bool sdl_push_quit ()
 
std::string sdl_window_event_str (Uint8 ev)
 
std::string sdl_get_pref_string (const std::string &key, const std::string &fallback)
 
bool sdl_get_pref_bool (const std::string &key, bool fallback)
 
int64_t sdl_get_pref_int (const std::string &key, int64_t fallback)
 
std::vector< std::string > sdl_get_pref_array (const std::string &key, const std::vector< std::string > &fallback)
 
std::string sdl_get_pref_dir ()
 
std::string sdl_get_pref_file ()
 

Macro Definition Documentation

◆ EV_CASE_STR

#define EV_CASE_STR (   x)
Value:
case x: \
return STR(x)
UINT16 x
Definition: include/freerdp/event.h:110
#define STR(x)

◆ STR

#define STR (   x)    #x

Function Documentation

◆ sdl_error_string()

const char* sdl_error_string ( Uint32  res)
Here is the caller graph for this function:

◆ sdl_event_type_str()

const char* sdl_event_type_str ( Uint32  type)

FreeRDP: A Remote Desktop Protocol Implementation SDL Client

Copyright 2022 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the caller graph for this function:

◆ sdl_get_pref_array()

std::vector<std::string> sdl_get_pref_array ( const std::string &  key,
const std::vector< std::string > &  fallback 
)
Here is the caller graph for this function:

◆ sdl_get_pref_bool()

bool sdl_get_pref_bool ( const std::string &  key,
bool  fallback 
)

◆ sdl_get_pref_dir()

std::string sdl_get_pref_dir ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_get_pref_file()

std::string sdl_get_pref_file ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_get_pref_int()

int64_t sdl_get_pref_int ( const std::string &  key,
int64_t  fallback 
)

◆ sdl_get_pref_string()

std::string sdl_get_pref_string ( const std::string &  key,
const std::string &  fallback 
)
Here is the caller graph for this function:

◆ sdl_log_error_ex()

BOOL sdl_log_error_ex ( Uint32  res,
wLog *  log,
const char *  what,
const char *  file,
size_t  line,
const char *  fkt 
)
Here is the call graph for this function:

◆ sdl_push_quit()

bool sdl_push_quit ( )
Here is the caller graph for this function:

◆ sdl_push_user_event()

BOOL sdl_push_user_event ( Uint32  type,
  ... 
)
Here is the caller graph for this function:

◆ sdl_window_event_str()

std::string sdl_window_event_str ( Uint8  ev)