fix declaration and implementation parameter names
This commit is contained in:
parent
f7fd817d1c
commit
5a4a1a40ad
@ -13,7 +13,7 @@ class SdlButtonList
|
||||
|
||||
bool populate(SDL_Renderer* renderer, const std::vector<std::string>& labels,
|
||||
const std::vector<int>& ids, Sint32 total_width, Sint32 offsetY, Sint32 width,
|
||||
Sint32 heigth);
|
||||
Sint32 height);
|
||||
|
||||
bool update(SDL_Renderer* renderer);
|
||||
SdlButton* get_selected(const SDL_MouseButtonEvent& button);
|
||||
|
@ -82,7 +82,7 @@ class SDLConnectionDialog
|
||||
bool setTimer(Uint32 timeoutMS = 15000);
|
||||
void resetTimer();
|
||||
|
||||
static Uint32 timeout(Uint32 intervalMS, void* _this);
|
||||
static Uint32 timeout(Uint32 intervalMS, void* pvthis);
|
||||
|
||||
struct widget_cfg_t
|
||||
{
|
||||
|
@ -134,13 +134,13 @@ bool SdlInputWidget::remove_str(SDL_Renderer* renderer, size_t count)
|
||||
return update_input(renderer);
|
||||
}
|
||||
|
||||
bool SdlInputWidget::append_str(SDL_Renderer* renderer, const std::string& str)
|
||||
bool SdlInputWidget::append_str(SDL_Renderer* renderer, const std::string& text)
|
||||
{
|
||||
assert(renderer);
|
||||
if (readonly())
|
||||
return true;
|
||||
|
||||
_text.append(str);
|
||||
_text.append(text);
|
||||
if (!resize_input(_text.size()))
|
||||
return false;
|
||||
return update_input(renderer);
|
||||
|
@ -42,7 +42,7 @@ class SdlInputWidget
|
||||
bool update_label(SDL_Renderer* renderer);
|
||||
|
||||
bool set_mouseover(SDL_Renderer* renderer, bool mouseOver);
|
||||
bool set_highlight(SDL_Renderer* renderer, bool hightlight);
|
||||
bool set_highlight(SDL_Renderer* renderer, bool highlight);
|
||||
bool update_input(SDL_Renderer* renderer);
|
||||
bool resize_input(size_t size);
|
||||
|
||||
@ -56,7 +56,7 @@ class SdlInputWidget
|
||||
[[nodiscard]] bool readonly() const;
|
||||
|
||||
protected:
|
||||
bool update_input(SDL_Renderer* renderer, SDL_Color fgclor);
|
||||
bool update_input(SDL_Renderer* renderer, SDL_Color fgcolor);
|
||||
|
||||
private:
|
||||
SdlInputWidget(const SdlInputWidget& other) = delete;
|
||||
|
@ -25,5 +25,5 @@
|
||||
#include "sdl_types.hpp"
|
||||
|
||||
int sdl_list_monitors(SdlContext* sdl);
|
||||
BOOL sdl_detect_monitors(SdlContext* sdl, UINT32* pWidth, UINT32* pHeight);
|
||||
BOOL sdl_detect_monitors(SdlContext* sdl, UINT32* pMaxWidth, UINT32* pMaxHeight);
|
||||
INT64 sdl_monitor_id_for_index(SdlContext* sdl, UINT32 index);
|
||||
|
@ -46,7 +46,7 @@ class SdlWindow
|
||||
void setBordered(bool bordered);
|
||||
void raise();
|
||||
void resizeable(bool use);
|
||||
void fullscreen(bool use);
|
||||
void fullscreen(bool enter);
|
||||
|
||||
bool fill(Uint8 r = 0x00, Uint8 g = 0x00, Uint8 b = 0x00, Uint8 a = 0xff);
|
||||
bool blit(SDL_Surface* surface, SDL_Rect src, SDL_Rect& dst);
|
||||
|
@ -13,7 +13,7 @@ class SdlButtonList
|
||||
|
||||
bool populate(SDL_Renderer* renderer, const std::vector<std::string>& labels,
|
||||
const std::vector<int>& ids, Sint32 total_width, Sint32 offsetY, Sint32 width,
|
||||
Sint32 heigth);
|
||||
Sint32 height);
|
||||
|
||||
bool update(SDL_Renderer* renderer);
|
||||
SdlButton* get_selected(const SDL_MouseButtonEvent& button);
|
||||
|
@ -135,13 +135,13 @@ bool SdlInputWidget::remove_str(SDL_Renderer* renderer, size_t count)
|
||||
return update_input(renderer);
|
||||
}
|
||||
|
||||
bool SdlInputWidget::append_str(SDL_Renderer* renderer, const std::string& str)
|
||||
bool SdlInputWidget::append_str(SDL_Renderer* renderer, const std::string& text)
|
||||
{
|
||||
assert(renderer);
|
||||
if (readonly())
|
||||
return true;
|
||||
|
||||
_text.append(str);
|
||||
_text.append(text);
|
||||
if (!resize_input(_text.size()))
|
||||
return false;
|
||||
return update_input(renderer);
|
||||
|
@ -42,7 +42,7 @@ class SdlInputWidget
|
||||
bool update_label(SDL_Renderer* renderer);
|
||||
|
||||
bool set_mouseover(SDL_Renderer* renderer, bool mouseOver);
|
||||
bool set_highlight(SDL_Renderer* renderer, bool hightlight);
|
||||
bool set_highlight(SDL_Renderer* renderer, bool highlight);
|
||||
bool update_input(SDL_Renderer* renderer);
|
||||
bool resize_input(size_t size);
|
||||
|
||||
@ -56,7 +56,7 @@ class SdlInputWidget
|
||||
[[nodiscard]] bool readonly() const;
|
||||
|
||||
protected:
|
||||
bool update_input(SDL_Renderer* renderer, SDL_Color fgclor);
|
||||
bool update_input(SDL_Renderer* renderer, SDL_Color fgcolor);
|
||||
|
||||
private:
|
||||
SdlInputWidget(const SdlInputWidget& other) = delete;
|
||||
|
@ -25,5 +25,5 @@
|
||||
#include "sdl_types.hpp"
|
||||
|
||||
int sdl_list_monitors(SdlContext* sdl);
|
||||
BOOL sdl_detect_monitors(SdlContext* sdl, UINT32* pWidth, UINT32* pHeight);
|
||||
BOOL sdl_detect_monitors(SdlContext* sdl, UINT32* pMaxWidth, UINT32* ppMaxHeight);
|
||||
INT64 sdl_monitor_id_for_index(SdlContext* sdl, UINT32 index);
|
||||
|
@ -46,7 +46,7 @@ class SdlWindow
|
||||
void setBordered(bool bordered);
|
||||
void raise();
|
||||
void resizeable(bool use);
|
||||
void fullscreen(bool use);
|
||||
void fullscreen(bool enter);
|
||||
|
||||
bool fill(Uint8 r = 0x00, Uint8 g = 0x00, Uint8 b = 0x00, Uint8 a = 0xff);
|
||||
bool blit(SDL_Surface* surface, const SDL_Rect& src, SDL_Rect& dst);
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <freerdp/client/cliprdr.h>
|
||||
|
||||
wfClipboard* wlf_clipboard_new(wlfContext* wlc);
|
||||
wfClipboard* wlf_clipboard_new(wlfContext* wfc);
|
||||
void wlf_clipboard_free(wfClipboard* clipboard);
|
||||
|
||||
BOOL wlf_cliprdr_init(wfClipboard* clipboard, CliprdrClientContext* cliprdr);
|
||||
|
@ -30,7 +30,7 @@ xfFloatbar* xf_floatbar_new(xfContext* xfc, Window window, const char* title, DW
|
||||
BOOL xf_floatbar_is_locked(xfFloatbar* floatbar);
|
||||
BOOL xf_floatbar_event_process(xfFloatbar* floatbar, const XEvent* event);
|
||||
BOOL xf_floatbar_check_event(xfFloatbar* floatbar, const XEvent* event);
|
||||
BOOL xf_floatbar_toggle_fullscreen(xfFloatbar* floatbar, bool visible);
|
||||
BOOL xf_floatbar_toggle_fullscreen(xfFloatbar* floatbar, bool fullscreen);
|
||||
BOOL xf_floatbar_hide_and_show(xfFloatbar* floatbar);
|
||||
BOOL xf_floatbar_set_root_y(xfFloatbar* floatbar, int y);
|
||||
|
||||
|
@ -40,9 +40,9 @@ static void write_log(wLog* log, DWORD level, const char* fname, const char* fkt
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
char* Safe_XGetAtomNameEx(wLog* log, Display* display, Atom atom, const char* atomvar)
|
||||
char* Safe_XGetAtomNameEx(wLog* log, Display* display, Atom atom, const char* varname)
|
||||
{
|
||||
WLog_Print(log, log_level, "XGetAtomName(%s, 0x%08" PRIx32 ")", atomvar, atom);
|
||||
WLog_Print(log, log_level, "XGetAtomName(%s, 0x%08" PRIx32 ")", varname, atom);
|
||||
if (atom == None)
|
||||
return strdup("Atom_None");
|
||||
return XGetAtomName(display, atom);
|
||||
|
@ -2303,7 +2303,7 @@ fail:
|
||||
return rc;
|
||||
}
|
||||
|
||||
CliprdrLocalStream* cliprdr_local_stream_new(CliprdrFileContext* context, UINT32 lockId,
|
||||
CliprdrLocalStream* cliprdr_local_stream_new(CliprdrFileContext* context, UINT32 streamID,
|
||||
const char* data, size_t size)
|
||||
{
|
||||
WINPR_ASSERT(context);
|
||||
@ -2315,7 +2315,7 @@ CliprdrLocalStream* cliprdr_local_stream_new(CliprdrFileContext* context, UINT32
|
||||
if (!cliprdr_local_stream_update(stream, data, size))
|
||||
goto fail;
|
||||
|
||||
stream->lockId = lockId;
|
||||
stream->lockId = streamID;
|
||||
return stream;
|
||||
|
||||
fail:
|
||||
|
2
libfreerdp/cache/bitmap.c
vendored
2
libfreerdp/cache/bitmap.c
vendored
@ -40,7 +40,7 @@
|
||||
#define TAG FREERDP_TAG("cache.bitmap")
|
||||
|
||||
static rdpBitmap* bitmap_cache_get(rdpBitmapCache* bitmapCache, UINT32 id, UINT32 index);
|
||||
static BOOL bitmap_cache_put(rdpBitmapCache* bitmap_cache, UINT32 id, UINT32 index,
|
||||
static BOOL bitmap_cache_put(rdpBitmapCache* bitmapCache, UINT32 id, UINT32 index,
|
||||
rdpBitmap* bitmap);
|
||||
|
||||
static BOOL update_gdi_memblt(rdpContext* context, MEMBLT_ORDER* memblt)
|
||||
|
10
libfreerdp/cache/glyph.c
vendored
10
libfreerdp/cache/glyph.c
vendored
@ -34,12 +34,12 @@
|
||||
|
||||
#define TAG FREERDP_TAG("cache.glyph")
|
||||
|
||||
static rdpGlyph* glyph_cache_get(rdpGlyphCache* glyph_cache, UINT32 id, UINT32 index);
|
||||
static BOOL glyph_cache_put(rdpGlyphCache* glyph_cache, UINT32 id, UINT32 index, rdpGlyph* entry);
|
||||
static rdpGlyph* glyph_cache_get(rdpGlyphCache* glyphCache, UINT32 id, UINT32 index);
|
||||
static BOOL glyph_cache_put(rdpGlyphCache* glyphCache, UINT32 id, UINT32 index, rdpGlyph* glyph);
|
||||
|
||||
static const void* glyph_cache_fragment_get(rdpGlyphCache* glyph, UINT32 index, UINT32* count);
|
||||
static BOOL glyph_cache_fragment_put(rdpGlyphCache* glyph, UINT32 index, UINT32 count,
|
||||
const void* entry);
|
||||
static const void* glyph_cache_fragment_get(rdpGlyphCache* glyphCache, UINT32 index, UINT32* size);
|
||||
static BOOL glyph_cache_fragment_put(rdpGlyphCache* glyphCache, UINT32 index, UINT32 size,
|
||||
const void* fragment);
|
||||
|
||||
static UINT32 update_glyph_offset(const BYTE* data, size_t length, UINT32 index, INT32* x, INT32* y,
|
||||
UINT32 ulCharInc, UINT32 flAccel)
|
||||
|
3
libfreerdp/cache/offscreen.c
vendored
3
libfreerdp/cache/offscreen.c
vendored
@ -44,8 +44,7 @@ struct rdp_offscreen_cache
|
||||
rdpContext* context;
|
||||
};
|
||||
|
||||
static void offscreen_cache_put(rdpOffscreenCache* offscreen_cache, UINT32 index,
|
||||
rdpBitmap* bitmap);
|
||||
static void offscreen_cache_put(rdpOffscreenCache* offscreenCache, UINT32 index, rdpBitmap* bitmap);
|
||||
static void offscreen_cache_delete(rdpOffscreenCache* offscreen, UINT32 index);
|
||||
|
||||
static BOOL
|
||||
|
@ -155,7 +155,7 @@ struct rdp_mcs
|
||||
#define MCS_TYPE_CONNECT_RESPONSE 0x66
|
||||
|
||||
const char* mcs_domain_pdu_string(DomainMCSPDU pdu);
|
||||
BOOL mcs_server_apply_to_settings(const rdpMcs* msc, rdpSettings* settings);
|
||||
BOOL mcs_server_apply_to_settings(const rdpMcs* mcs, rdpSettings* settings);
|
||||
|
||||
FREERDP_LOCAL BOOL mcs_recv_connect_initial(rdpMcs* mcs, wStream* s);
|
||||
FREERDP_LOCAL BOOL mcs_recv_connect_response(rdpMcs* mcs, wStream* s);
|
||||
|
@ -57,7 +57,7 @@ PfChannelResult channelTracker_update(ChannelStateTracker* tracker, const BYTE*
|
||||
UINT32 flags, size_t totalSize);
|
||||
|
||||
PfChannelResult channelTracker_flushCurrent(ChannelStateTracker* t, BOOL first, BOOL last,
|
||||
BOOL toFront);
|
||||
BOOL toBack);
|
||||
|
||||
BOOL pf_channel_setup_generic(pServerStaticChannelContext* channel);
|
||||
|
||||
|
@ -26,7 +26,7 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
BOOL shadow_client_accepted(freerdp_listener* instance, freerdp_peer* client);
|
||||
BOOL shadow_client_accepted(freerdp_listener* instance, freerdp_peer* peer);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -184,10 +184,11 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int apc_executeCompletions(WINPR_THREAD* thread, WINPR_POLL_SET* set, size_t idx)
|
||||
int apc_executeCompletions(WINPR_THREAD* thread, WINPR_POLL_SET* set, size_t startIndex)
|
||||
{
|
||||
APC_QUEUE* apc = NULL;
|
||||
WINPR_APC_ITEM* nextItem = NULL;
|
||||
size_t idx = startIndex;
|
||||
int ret = 0;
|
||||
|
||||
WINPR_ASSERT(thread);
|
||||
|
Loading…
Reference in New Issue
Block a user