fix declaration and implementation parameter names

This commit is contained in:
akallabeth 2024-09-03 11:04:32 +02:00
parent f7fd817d1c
commit 5a4a1a40ad
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
22 changed files with 33 additions and 33 deletions

View File

@ -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);

View File

@ -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
{

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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:

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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
}

View File

@ -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);