Fixed compilation with -Wstrict-prototypes

This commit is contained in:
hardening 2013-02-14 22:20:43 +01:00
parent 29b94e6787
commit 865ff2a5f8
46 changed files with 72 additions and 72 deletions

View File

@ -91,7 +91,7 @@ void rail_send_client_window_move_order(rdpRailOrder* rail_order);
void rail_send_client_get_appid_req_order(rdpRailOrder* rail_order); void rail_send_client_get_appid_req_order(rdpRailOrder* rail_order);
void rail_send_client_langbar_info_order(rdpRailOrder* rail_order); void rail_send_client_langbar_info_order(rdpRailOrder* rail_order);
rdpRailOrder* rail_order_new(); rdpRailOrder* rail_order_new(void);
void rail_order_free(rdpRailOrder* rail_order); void rail_order_free(rdpRailOrder* rail_order);
#endif /* __RAIL_ORDERS_H */ #endif /* __RAIL_ORDERS_H */

View File

@ -62,7 +62,7 @@ struct _ISOCH_CALLBACK_QUEUE
}; };
ISOCH_CALLBACK_QUEUE* isoch_queue_new(); ISOCH_CALLBACK_QUEUE* isoch_queue_new(void);

View File

@ -59,7 +59,7 @@ struct _REQUEST_QUEUE
}; };
REQUEST_QUEUE* request_queue_new(); REQUEST_QUEUE* request_queue_new(void);
#endif /* __REQUEST_QUEUE_H */ #endif /* __REQUEST_QUEUE_H */

View File

@ -63,7 +63,7 @@ BOOL android_check_fds(freerdp * inst);
ANDROID_EVENT_KEY* android_event_key_new(int flags, UINT16 scancode); ANDROID_EVENT_KEY* android_event_key_new(int flags, UINT16 scancode);
ANDROID_EVENT_KEY* android_event_unicodekey_new(UINT16 key); ANDROID_EVENT_KEY* android_event_unicodekey_new(UINT16 key);
ANDROID_EVENT_CURSOR* android_event_cursor_new(UINT16 flags, UINT16 x, UINT16 y); ANDROID_EVENT_CURSOR* android_event_cursor_new(UINT16 flags, UINT16 x, UINT16 y);
ANDROID_EVENT* android_event_disconnect_new(); ANDROID_EVENT* android_event_disconnect_new(void);
void android_event_key_free(ANDROID_EVENT_KEY* event); void android_event_key_free(ANDROID_EVENT_KEY* event);
void android_event_unicodekey_free(ANDROID_EVENT_KEY* event); void android_event_unicodekey_free(ANDROID_EVENT_KEY* event);
void android_event_cursor_free(ANDROID_EVENT_CURSOR* event); void android_event_cursor_free(ANDROID_EVENT_CURSOR* event);

View File

@ -18,7 +18,7 @@
jint init_callback_environment(JavaVM* vm); jint init_callback_environment(JavaVM* vm);
jboolean jni_attach_thread(JNIEnv** env); jboolean jni_attach_thread(JNIEnv** env);
void jni_detach_thread(); void jni_detach_thread(void);
void freerdp_callback(const char * callback, const char * signature, ...); void freerdp_callback(const char * callback, const char * signature, ...);
jboolean freerdp_callback_bool_result(const char * callback, const char * signature, ...); jboolean freerdp_callback_bool_result(const char * callback, const char * signature, ...);
void tsxconnect_callback(const char * callback, const char * signature, ...); void tsxconnect_callback(const char * callback, const char * signature, ...);

View File

@ -22,7 +22,7 @@
#include "dfreerdp.h" #include "dfreerdp.h"
void df_keyboard_init(); void df_keyboard_init(void);
BOOL df_event_process(freerdp* instance, DFBEvent* event); BOOL df_event_process(freerdp* instance, DFBEvent* event);
#endif /* __DF_EVENT_H */ #endif /* __DF_EVENT_H */

View File

@ -15,5 +15,5 @@
@property (assign) IBOutlet NSWindow *window; @property (assign) IBOutlet NSWindow *window;
int rdp_connect(); int rdp_connect(void);
@end @end

View File

@ -99,7 +99,7 @@ void pointer_free(rdpContext* context, rdpPointer* pointer);
void pointer_set(rdpContext* context, rdpPointer* pointer); void pointer_set(rdpContext* context, rdpPointer* pointer);
void pointer_setNull(rdpContext* context); void pointer_setNull(rdpContext* context);
void pointer_setDefault(rdpContext* context); void pointer_setDefault(rdpContext* context);
int rdp_connect(); int rdp_connect(void);
BOOL mac_pre_connect(freerdp *inst); BOOL mac_pre_connect(freerdp *inst);
BOOL mac_post_connect(freerdp *inst); BOOL mac_post_connect(freerdp *inst);
void mac_context_new(freerdp *inst, rdpContext *context); void mac_context_new(freerdp *inst, rdpContext *context);
@ -139,7 +139,7 @@ void mac_send_rail_client_event(rdpChannels *channels, UINT16 event_type, void *
void mac_on_free_rail_client_event(RDP_EVENT* event); void mac_on_free_rail_client_event(RDP_EVENT* event);
void mac_process_rail_server_sysparam_event(rdpChannels* channels, RDP_EVENT* event); void mac_process_rail_server_sysparam_event(rdpChannels* channels, RDP_EVENT* event);
void mac_process_rail_exec_result_event(rdpChannels* channels, RDP_EVENT* event); void mac_process_rail_exec_result_event(rdpChannels* channels, RDP_EVENT* event);
void mac_rail_enable_remoteapp_mode(); void mac_rail_enable_remoteapp_mode(void);
void mac_process_rail_server_minmaxinfo_event(rdpChannels* channels, RDP_EVENT* event); void mac_process_rail_server_minmaxinfo_event(rdpChannels* channels, RDP_EVENT* event);
void mac_process_rail_server_localmovesize_event(freerdp *inst, RDP_EVENT *event); void mac_process_rail_server_localmovesize_event(freerdp *inst, RDP_EVENT *event);
void apple_center_window(NSRect * r); void apple_center_window(NSRect * r);

View File

@ -52,8 +52,8 @@ typedef void* (*FREERDP_LOAD_CHANNEL_ADDIN_ENTRY_FN)(LPCSTR pszName, LPSTR pszSu
extern "C" { extern "C" {
#endif #endif
FREERDP_API LPSTR freerdp_get_library_install_path(); FREERDP_API LPSTR freerdp_get_library_install_path(void);
FREERDP_API LPSTR freerdp_get_dynamic_addin_install_path(); FREERDP_API LPSTR freerdp_get_dynamic_addin_install_path(void);
FREERDP_API int freerdp_register_addin_provider(FREERDP_LOAD_CHANNEL_ADDIN_ENTRY_FN provider, DWORD dwFlags); FREERDP_API int freerdp_register_addin_provider(FREERDP_LOAD_CHANNEL_ADDIN_ENTRY_FN provider, DWORD dwFlags);

View File

@ -30,7 +30,7 @@ extern "C" {
FREERDP_API int freerdp_client_parse_command_line_arguments(int argc, char** argv, rdpSettings* settings); FREERDP_API int freerdp_client_parse_command_line_arguments(int argc, char** argv, rdpSettings* settings);
FREERDP_API int freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings); FREERDP_API int freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings);
FREERDP_API int freerdp_client_print_version(); FREERDP_API int freerdp_client_print_version(void);
FREERDP_API int freerdp_client_print_command_line_help(int argc, char** argv); FREERDP_API int freerdp_client_print_command_line_help(int argc, char** argv);
FREERDP_API int freerdp_parse_username(char* username, char** user, char** domain); FREERDP_API int freerdp_parse_username(char* username, char** user, char** domain);

View File

@ -141,7 +141,7 @@ FREERDP_API BOOL freerdp_client_parse_rdp_file(rdpFile* file, char* name);
FREERDP_API BOOL freerdp_client_parse_rdp_file_buffer(rdpFile* file, BYTE* buffer, size_t size); FREERDP_API BOOL freerdp_client_parse_rdp_file_buffer(rdpFile* file, BYTE* buffer, size_t size);
FREERDP_API BOOL freerdp_client_populate_settings_from_rdp_file(rdpFile* file, rdpSettings* settings); FREERDP_API BOOL freerdp_client_populate_settings_from_rdp_file(rdpFile* file, rdpSettings* settings);
FREERDP_API rdpFile* freerdp_client_rdp_file_new(); FREERDP_API rdpFile* freerdp_client_rdp_file_new(void);
FREERDP_API void freerdp_client_rdp_file_free(rdpFile* file); FREERDP_API void freerdp_client_rdp_file_free(rdpFile* file);
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -206,7 +206,7 @@ FREERDP_API UINT32 freerdp_error_info(freerdp* instance);
FREERDP_API void freerdp_get_version(int* major, int* minor, int* revision); FREERDP_API void freerdp_get_version(int* major, int* minor, int* revision);
FREERDP_API freerdp* freerdp_new(); FREERDP_API freerdp* freerdp_new(void);
FREERDP_API void freerdp_free(freerdp* instance); FREERDP_API void freerdp_free(freerdp* instance);
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -23,7 +23,7 @@
#include <freerdp/api.h> #include <freerdp/api.h>
#include <freerdp/gdi/gdi.h> #include <freerdp/gdi/gdi.h>
FREERDP_API HGDI_DC gdi_GetDC(); FREERDP_API HGDI_DC gdi_GetDC(void);
FREERDP_API HGDI_DC gdi_CreateDC(HCLRCONV clrconv, int bpp); FREERDP_API HGDI_DC gdi_CreateDC(HCLRCONV clrconv, int bpp);
FREERDP_API HGDI_DC gdi_CreateCompatibleDC(HGDI_DC hdc); FREERDP_API HGDI_DC gdi_CreateCompatibleDC(HGDI_DC hdc);
FREERDP_API HGDIOBJECT gdi_SelectObject(HGDI_DC hdc, HGDIOBJECT hgdiobject); FREERDP_API HGDIOBJECT gdi_SelectObject(HGDI_DC hdc, HGDIOBJECT hgdiobject);

View File

@ -24,6 +24,6 @@
#include <freerdp/gdi/gdi.h> #include <freerdp/gdi/gdi.h>
FREERDP_API HGDI_PALETTE gdi_CreatePalette(HGDI_PALETTE palette); FREERDP_API HGDI_PALETTE gdi_CreatePalette(HGDI_PALETTE palette);
FREERDP_API HGDI_PALETTE gdi_GetSystemPalette(); FREERDP_API HGDI_PALETTE gdi_GetSystemPalette(void);
#endif /* FREERDP_GDI_PALETTE_H */ #endif /* FREERDP_GDI_PALETTE_H */

View File

@ -230,8 +230,8 @@
#define YORUBA 0x046A #define YORUBA 0x046A
#define ZULU 0x0435 #define ZULU 0x0435
FREERDP_API UINT32 freerdp_get_system_locale_id(); FREERDP_API UINT32 freerdp_get_system_locale_id(void);
FREERDP_API UINT32 freerdp_detect_keyboard_layout_from_system_locale(); FREERDP_API UINT32 freerdp_detect_keyboard_layout_from_system_locale(void);
FREERDP_API const char* freerdp_get_system_locale_name_from_id(UINT32 localeId); FREERDP_API const char* freerdp_get_system_locale_name_from_id(UINT32 localeId);
#endif /* FREERDP_LOCALE_H */ #endif /* FREERDP_LOCALE_H */

View File

@ -133,7 +133,7 @@ FREERDP_API MSUSB_INTERFACE_DESCRIPTOR* msusb_msinterface_read(BYTE* data, UINT3
FREERDP_API int msusb_msinterface_write(MSUSB_INTERFACE_DESCRIPTOR* MsInterface, BYTE* data, int* offset); FREERDP_API int msusb_msinterface_write(MSUSB_INTERFACE_DESCRIPTOR* MsInterface, BYTE* data, int* offset);
/* MSUSB_CONFIG exported functions */ /* MSUSB_CONFIG exported functions */
FREERDP_API MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_new(); FREERDP_API MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_new(void);
FREERDP_API void msusb_msconfig_free(MSUSB_CONFIG_DESCRIPTOR* MsConfig); FREERDP_API void msusb_msconfig_free(MSUSB_CONFIG_DESCRIPTOR* MsConfig);
FREERDP_API MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_read(BYTE* data, UINT32 data_size, UINT32 NumInterfaces); FREERDP_API MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_read(BYTE* data, UINT32 data_size, UINT32 NumInterfaces);
FREERDP_API int msusb_msconfig_write(MSUSB_CONFIG_DESCRIPTOR* MsConfg, BYTE* data, int * offset); FREERDP_API int msusb_msconfig_write(MSUSB_CONFIG_DESCRIPTOR* MsConfg, BYTE* data, int * offset);

View File

@ -40,9 +40,9 @@ FREERDP_API void profiler_free(PROFILER* profiler);
FREERDP_API void profiler_enter(PROFILER* profiler); FREERDP_API void profiler_enter(PROFILER* profiler);
FREERDP_API void profiler_exit(PROFILER* profiler); FREERDP_API void profiler_exit(PROFILER* profiler);
FREERDP_API void profiler_print_header(); FREERDP_API void profiler_print_header(void);
FREERDP_API void profiler_print(PROFILER* profiler); FREERDP_API void profiler_print(PROFILER* profiler);
FREERDP_API void profiler_print_footer(); FREERDP_API void profiler_print_footer(void);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -38,7 +38,7 @@ typedef struct _STOPWATCH STOPWATCH;
extern "C" { extern "C" {
#endif #endif
FREERDP_API STOPWATCH* stopwatch_create(); FREERDP_API STOPWATCH* stopwatch_create(void);
FREERDP_API void stopwatch_free(STOPWATCH* stopwatch); FREERDP_API void stopwatch_free(STOPWATCH* stopwatch);
FREERDP_API void stopwatch_start(STOPWATCH* stopwatch); FREERDP_API void stopwatch_start(STOPWATCH* stopwatch);

View File

@ -36,8 +36,8 @@ FREERDP_API int freerdp_tcp_disconnect(int sockfd);
FREERDP_API int freerdp_tcp_set_no_delay(int sockfd, BOOL no_delay); FREERDP_API int freerdp_tcp_set_no_delay(int sockfd, BOOL no_delay);
FREERDP_API int freerdp_wsa_startup(); FREERDP_API int freerdp_wsa_startup(void);
FREERDP_API int freerdp_wsa_cleanup(); FREERDP_API int freerdp_wsa_cleanup(void);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -34,7 +34,7 @@
extern "C" { extern "C" {
#endif #endif
FREERDP_API UINT64 freerdp_windows_gmtime(); FREERDP_API UINT64 freerdp_windows_gmtime(void);
FREERDP_API UINT64 freerdp_get_windows_time_from_unix_time(time_t unix_time); FREERDP_API UINT64 freerdp_get_windows_time_from_unix_time(time_t unix_time);
FREERDP_API time_t freerdp_get_unix_time_from_windows_time(UINT64 windows_time); FREERDP_API time_t freerdp_get_unix_time_from_windows_time(UINT64 windows_time);

View File

@ -51,7 +51,7 @@ BOOL certificate_read_server_proprietary_certificate(rdpCertificate* certificate
BOOL certificate_read_server_x509_certificate_chain(rdpCertificate* certificate, STREAM* s); BOOL certificate_read_server_x509_certificate_chain(rdpCertificate* certificate, STREAM* s);
int certificate_read_server_certificate(rdpCertificate* certificate, BYTE* server_cert, int length); int certificate_read_server_certificate(rdpCertificate* certificate, BYTE* server_cert, int length);
rdpCertificate* certificate_new(); rdpCertificate* certificate_new(void);
void certificate_free(rdpCertificate* certificate); void certificate_free(rdpCertificate* certificate);
rdpRsaKey* key_new(const char *keyfile); rdpRsaKey* key_new(const char *keyfile);

View File

@ -50,7 +50,7 @@ void http_context_set_cache_control(HttpContext* http_context, char* cache_contr
void http_context_set_connection(HttpContext* http_context, char* connection); void http_context_set_connection(HttpContext* http_context, char* connection);
void http_context_set_pragma(HttpContext* http_context, char* pragma); void http_context_set_pragma(HttpContext* http_context, char* pragma);
HttpContext* http_context_new(); HttpContext* http_context_new(void);
void http_context_free(HttpContext* http_context); void http_context_free(HttpContext* http_context);
struct _http_request struct _http_request
@ -74,7 +74,7 @@ void http_request_set_auth_param(HttpRequest* http_request, char* auth_param);
wStream* http_request_write(HttpContext* http_context, HttpRequest* http_request); wStream* http_request_write(HttpContext* http_context, HttpRequest* http_request);
HttpRequest* http_request_new(); HttpRequest* http_request_new(void);
void http_request_free(HttpRequest* http_request); void http_request_free(HttpRequest* http_request);
struct _http_response struct _http_response
@ -96,7 +96,7 @@ void http_response_print(HttpResponse* http_response);
HttpResponse* http_response_recv(rdpTls* tls); HttpResponse* http_response_recv(rdpTls* tls);
HttpResponse* http_response_new(); HttpResponse* http_response_new(void);
void http_response_free(HttpResponse* http_response); void http_response_free(HttpResponse* http_response);
#endif /* FREERDP_CORE_HTTP_H */ #endif /* FREERDP_CORE_HTTP_H */

View File

@ -36,7 +36,7 @@ BOOL rpc_ntlm_http_in_connect(rdpRpc* rpc);
void rpc_ntlm_http_init_channel(rdpRpc* rpc, rdpNtlmHttp* ntlm_http, TSG_CHANNEL channel); void rpc_ntlm_http_init_channel(rdpRpc* rpc, rdpNtlmHttp* ntlm_http, TSG_CHANNEL channel);
rdpNtlmHttp* ntlm_http_new(); rdpNtlmHttp* ntlm_http_new(void);
void ntlm_http_free(rdpNtlmHttp* ntlm_http); void ntlm_http_free(rdpNtlmHttp* ntlm_http);
#endif #endif

View File

@ -80,7 +80,7 @@ void ntlm_client_uninit(rdpNtlm* ntlm);
BOOL ntlm_client_make_spn(rdpNtlm* ntlm, LPCTSTR ServiceClass, char* hostname); BOOL ntlm_client_make_spn(rdpNtlm* ntlm, LPCTSTR ServiceClass, char* hostname);
rdpNtlm* ntlm_new(); rdpNtlm* ntlm_new(void);
void ntlm_free(rdpNtlm* ntlm); void ntlm_free(rdpNtlm* ntlm);
#endif /* FREERDP_CORE_NTLM_H */ #endif /* FREERDP_CORE_NTLM_H */

View File

@ -208,7 +208,7 @@ void license_generate_hwid(rdpLicense* license);
void license_encrypt_premaster_secret(rdpLicense* license); void license_encrypt_premaster_secret(rdpLicense* license);
void license_decrypt_platform_challenge(rdpLicense* license); void license_decrypt_platform_challenge(rdpLicense* license);
PRODUCT_INFO* license_new_product_info(); PRODUCT_INFO* license_new_product_info(void);
void license_free_product_info(PRODUCT_INFO* productInfo); void license_free_product_info(PRODUCT_INFO* productInfo);
BOOL license_read_product_info(STREAM* s, PRODUCT_INFO* productInfo); BOOL license_read_product_info(STREAM* s, PRODUCT_INFO* productInfo);
@ -217,7 +217,7 @@ void license_free_binary_blob(LICENSE_BLOB* blob);
BOOL license_read_binary_blob(STREAM* s, LICENSE_BLOB* blob); BOOL license_read_binary_blob(STREAM* s, LICENSE_BLOB* blob);
void license_write_binary_blob(STREAM* s, LICENSE_BLOB* blob); void license_write_binary_blob(STREAM* s, LICENSE_BLOB* blob);
SCOPE_LIST* license_new_scope_list(); SCOPE_LIST* license_new_scope_list(void);
void license_free_scope_list(SCOPE_LIST* scopeList); void license_free_scope_list(SCOPE_LIST* scopeList);
BOOL license_read_scope_list(STREAM* s, SCOPE_LIST* scopeList); BOOL license_read_scope_list(STREAM* s, SCOPE_LIST* scopeList);

View File

@ -49,7 +49,7 @@ typedef struct rdp_redirection rdpRedirection;
BOOL rdp_recv_redirection_packet(rdpRdp* rdp, STREAM* s); BOOL rdp_recv_redirection_packet(rdpRdp* rdp, STREAM* s);
BOOL rdp_recv_enhanced_security_redirection_packet(rdpRdp* rdp, STREAM* s); BOOL rdp_recv_enhanced_security_redirection_packet(rdpRdp* rdp, STREAM* s);
rdpRedirection* redirection_new(); rdpRedirection* redirection_new(void);
void redirection_free(rdpRedirection* redirection); void redirection_free(rdpRedirection* redirection);
#ifdef WITH_DEBUG_REDIR #ifdef WITH_DEBUG_REDIR

View File

@ -69,7 +69,7 @@ void mf_event_region_free(mfEventRegion* event_region);
mfEvent* mf_event_new(int type); mfEvent* mf_event_new(int type);
void mf_event_free(mfEvent* event); void mf_event_free(mfEvent* event);
mfEventQueue* mf_event_queue_new(); mfEventQueue* mf_event_queue_new(void);
void mf_event_queue_free(mfEventQueue* event_queue); void mf_event_queue_free(mfEventQueue* event_queue);
#endif /* __MF_EVENT_H */ #endif /* __MF_EVENT_H */

View File

@ -34,7 +34,7 @@ int mf_info_lock(mfInfo* mfi);
int mf_info_try_lock(mfInfo* mfi, UINT32 ms); int mf_info_try_lock(mfInfo* mfi, UINT32 ms);
int mf_info_unlock(mfInfo* mfi); int mf_info_unlock(mfInfo* mfi);
mfInfo* mf_info_get_instance(); mfInfo* mf_info_get_instance(void);
void mf_info_peer_register(mfInfo* mfi, mfPeerContext* context); void mf_info_peer_register(mfInfo* mfi, mfPeerContext* context);
void mf_info_peer_unregister(mfInfo* mfi, mfPeerContext* context); void mf_info_peer_unregister(mfInfo* mfi, mfPeerContext* context);

View File

@ -25,14 +25,14 @@
int mf_mlion_display_info(UINT32* disp_width, UINT32* dispHeight, UINT32* scale); int mf_mlion_display_info(UINT32* disp_width, UINT32* dispHeight, UINT32* scale);
int mf_mlion_screen_updates_init(); int mf_mlion_screen_updates_init(void);
int mf_mlion_start_getting_screen_updates(); int mf_mlion_start_getting_screen_updates(void);
int mf_mlion_stop_getting_screen_updates(); int mf_mlion_stop_getting_screen_updates(void);
int mf_mlion_get_dirty_region(RFX_RECT* invalid); int mf_mlion_get_dirty_region(RFX_RECT* invalid);
int mf_mlion_peek_dirty_region(RFX_RECT* invalid); int mf_mlion_peek_dirty_region(RFX_RECT* invalid);
int mf_mlion_clear_dirty_region(); int mf_mlion_clear_dirty_region(void);
int mf_mlion_get_pixelData(long x, long y, long width, long height, BYTE **pxData); int mf_mlion_get_pixelData(long x, long y, long width, long height, BYTE **pxData);

View File

@ -60,7 +60,7 @@ struct _AQRecorderState
typedef struct _AQRecorderState AQRecorderState; typedef struct _AQRecorderState AQRecorderState;
BOOL mf_peer_rdpsnd_init(mfPeerContext* context); BOOL mf_peer_rdpsnd_init(mfPeerContext* context);
BOOL mf_peer_rdpsnd_stop(); BOOL mf_peer_rdpsnd_stop(void);
#endif /* MF_RDPSND_H */ #endif /* MF_RDPSND_H */

View File

@ -29,7 +29,7 @@ int wf_info_lock(wfInfo* wfi);
int wf_info_try_lock(wfInfo* wfi, DWORD dwMilliseconds); int wf_info_try_lock(wfInfo* wfi, DWORD dwMilliseconds);
int wf_info_unlock(wfInfo* wfi); int wf_info_unlock(wfInfo* wfi);
wfInfo* wf_info_get_instance(); wfInfo* wf_info_get_instance(void);
void wf_info_peer_register(wfInfo* wfi, wfPeerContext* context); void wf_info_peer_register(wfInfo* wfi, wfPeerContext* context);
void wf_info_peer_unregister(wfInfo* wfi, wfPeerContext* context); void wf_info_peer_unregister(wfInfo* wfi, wfPeerContext* context);

View File

@ -118,12 +118,12 @@ FREERDP_API void set_screen_id(int id);
FREERDP_API BOOL wfreerdp_server_start(wfServer* server); FREERDP_API BOOL wfreerdp_server_start(wfServer* server);
FREERDP_API BOOL wfreerdp_server_stop(wfServer* server); FREERDP_API BOOL wfreerdp_server_stop(wfServer* server);
FREERDP_API wfServer* wfreerdp_server_new(); FREERDP_API wfServer* wfreerdp_server_new(void);
FREERDP_API void wfreerdp_server_free(wfServer* server); FREERDP_API void wfreerdp_server_free(wfServer* server);
FREERDP_API BOOL wfreerdp_server_is_running(wfServer* server); FREERDP_API BOOL wfreerdp_server_is_running(wfServer* server);
FREERDP_API UINT32 wfreerdp_server_num_peers(); FREERDP_API UINT32 wfreerdp_server_num_peers(void);
FREERDP_API UINT32 wfreerdp_server_get_peer_hostname(int pId, wchar_t * dstStr); FREERDP_API UINT32 wfreerdp_server_get_peer_hostname(int pId, wchar_t * dstStr);
FREERDP_API BOOL wfreerdp_server_peer_is_local(int pId); FREERDP_API BOOL wfreerdp_server_peer_is_local(int pId);
FREERDP_API BOOL wfreerdp_server_peer_is_connected(int pId); FREERDP_API BOOL wfreerdp_server_peer_is_connected(int pId);

View File

@ -41,7 +41,7 @@ void wf_peer_synchronize_event(rdpInput* input, UINT32 flags);
void wf_peer_send_changes(freerdp_peer* client); void wf_peer_send_changes(freerdp_peer* client);
void wf_detect_win_ver(); void wf_detect_win_ver(void);
void wf_peer_accepted(freerdp_listener* instance, freerdp_peer* client); void wf_peer_accepted(freerdp_listener* instance, freerdp_peer* client);

View File

@ -26,8 +26,8 @@
#include "wf_interface.h" #include "wf_interface.h"
int wf_rdpsnd_lock(); int wf_rdpsnd_lock(void);
int wf_rdpsnd_unlock(); int wf_rdpsnd_unlock(void);
BOOL wf_peer_rdpsnd_init(wfPeerContext* context); BOOL wf_peer_rdpsnd_init(wfPeerContext* context);
DWORD WINAPI wf_rdpsnd_thread(LPVOID lpParam); DWORD WINAPI wf_rdpsnd_thread(LPVOID lpParam);

View File

@ -69,7 +69,7 @@ void xf_event_region_free(xfEventRegion* event_region);
xfEvent* xf_event_new(int type); xfEvent* xf_event_new(int type);
void xf_event_free(xfEvent* event); void xf_event_free(xfEvent* event);
xfEventQueue* xf_event_queue_new(); xfEventQueue* xf_event_queue_new(void);
void xf_event_queue_free(xfEventQueue* event_queue); void xf_event_queue_free(xfEventQueue* event_queue);
#endif /* __XF_EVENT_H */ #endif /* __XF_EVENT_H */

View File

@ -285,7 +285,7 @@ WINPR_API void MessageQueue_PostQuit(wMessageQueue* queue, int nExitCode);
WINPR_API int MessageQueue_Get(wMessageQueue* queue, wMessage* message); WINPR_API int MessageQueue_Get(wMessageQueue* queue, wMessage* message);
WINPR_API int MessageQueue_Peek(wMessageQueue* queue, wMessage* message, BOOL remove); WINPR_API int MessageQueue_Peek(wMessageQueue* queue, wMessage* message, BOOL remove);
WINPR_API wMessageQueue* MessageQueue_New(); WINPR_API wMessageQueue* MessageQueue_New(void);
WINPR_API void MessageQueue_Free(wMessageQueue* queue); WINPR_API void MessageQueue_Free(wMessageQueue* queue);
#endif /* WINPR_COLLECTIONS_H */ #endif /* WINPR_COLLECTIONS_H */

View File

@ -166,7 +166,7 @@ WINPR_API VOID WaitForThreadpoolIoCallbacks(PTP_IO pio, BOOL fCancelPendingCallb
/* Clean-up Group */ /* Clean-up Group */
WINPR_API PTP_CLEANUP_GROUP CreateThreadpoolCleanupGroup(); WINPR_API PTP_CLEANUP_GROUP CreateThreadpoolCleanupGroup(void);
WINPR_API VOID CloseThreadpoolCleanupGroupMembers(PTP_CLEANUP_GROUP ptpcg, BOOL fCancelPendingCallbacks, PVOID pvCleanupContext); WINPR_API VOID CloseThreadpoolCleanupGroupMembers(PTP_CLEANUP_GROUP ptpcg, BOOL fCancelPendingCallbacks, PVOID pvCleanupContext);
WINPR_API VOID CloseThreadpoolCleanupGroup(PTP_CLEANUP_GROUP ptpcg); WINPR_API VOID CloseThreadpoolCleanupGroup(PTP_CLEANUP_GROUP ptpcg);
@ -203,6 +203,6 @@ WINPR_API VOID DisassociateCurrentThreadFromCallback(PTP_CALLBACK_INSTANCE pci);
/* Dummy */ /* Dummy */
WINPR_API void winpr_pool_dummy(); WINPR_API void winpr_pool_dummy(void);
#endif /* WINPR_POOL_H */ #endif /* WINPR_POOL_H */

View File

@ -508,7 +508,7 @@ WINPR_API RPC_STATUS RpcServerUseProtseqIfA(RPC_CSTR Protseq, unsigned int MaxCa
WINPR_API RPC_STATUS RpcServerUseProtseqIfExA(RPC_CSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy); WINPR_API RPC_STATUS RpcServerUseProtseqIfExA(RPC_CSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy);
WINPR_API RPC_STATUS RpcServerUseProtseqIfW(RPC_WSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor); WINPR_API RPC_STATUS RpcServerUseProtseqIfW(RPC_WSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor);
WINPR_API RPC_STATUS RpcServerUseProtseqIfExW(RPC_WSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy); WINPR_API RPC_STATUS RpcServerUseProtseqIfExW(RPC_WSTR Protseq, unsigned int MaxCalls, RPC_IF_HANDLE IfSpec, void* SecurityDescriptor, PRPC_POLICY Policy);
WINPR_API void RpcServerYield(); WINPR_API void RpcServerYield(void);
WINPR_API RPC_STATUS RpcMgmtStatsVectorFree(RPC_STATS_VECTOR** StatsVector); WINPR_API RPC_STATUS RpcMgmtStatsVectorFree(RPC_STATS_VECTOR** StatsVector);
WINPR_API RPC_STATUS RpcMgmtInqStats(RPC_BINDING_HANDLE Binding, RPC_STATS_VECTOR** Statistics); WINPR_API RPC_STATUS RpcMgmtInqStats(RPC_BINDING_HANDLE Binding, RPC_STATS_VECTOR** Statistics);
WINPR_API RPC_STATUS RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding); WINPR_API RPC_STATUS RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding);
@ -529,7 +529,7 @@ WINPR_API RPC_STATUS RpcNsBindingInqEntryNameW(RPC_BINDING_HANDLE Binding, unsig
WINPR_API RPC_STATUS RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle); WINPR_API RPC_STATUS RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle);
WINPR_API RPC_STATUS RpcRevertToSelfEx(RPC_BINDING_HANDLE BindingHandle); WINPR_API RPC_STATUS RpcRevertToSelfEx(RPC_BINDING_HANDLE BindingHandle);
WINPR_API RPC_STATUS RpcRevertToSelf(); WINPR_API RPC_STATUS RpcRevertToSelf(void);
WINPR_API RPC_STATUS RpcBindingInqAuthClientA(RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE* Privs, WINPR_API RPC_STATUS RpcBindingInqAuthClientA(RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE* Privs,
RPC_CSTR* ServerPrincName, unsigned long* AuthnLevel, unsigned long* AuthnSvc, unsigned long* AuthzSvc); RPC_CSTR* ServerPrincName, unsigned long* AuthnLevel, unsigned long* AuthnSvc, unsigned long* AuthzSvc);
WINPR_API RPC_STATUS RpcBindingInqAuthClientW(RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE* Privs, WINPR_API RPC_STATUS RpcBindingInqAuthClientW(RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE* Privs,
@ -562,7 +562,7 @@ WINPR_API RPC_STATUS RpcServerRegisterAuthInfoW(RPC_WSTR ServerPrincName, unsign
WINPR_API RPC_STATUS RpcBindingServerFromClient(RPC_BINDING_HANDLE ClientBinding, RPC_BINDING_HANDLE* ServerBinding); WINPR_API RPC_STATUS RpcBindingServerFromClient(RPC_BINDING_HANDLE ClientBinding, RPC_BINDING_HANDLE* ServerBinding);
WINPR_API DECLSPEC_NORETURN void RpcRaiseException(RPC_STATUS exception); WINPR_API DECLSPEC_NORETURN void RpcRaiseException(RPC_STATUS exception);
WINPR_API RPC_STATUS RpcTestCancel(); WINPR_API RPC_STATUS RpcTestCancel(void);
WINPR_API RPC_STATUS RpcServerTestCancel(RPC_BINDING_HANDLE BindingHandle); WINPR_API RPC_STATUS RpcServerTestCancel(RPC_BINDING_HANDLE BindingHandle);
WINPR_API RPC_STATUS RpcCancelThread(void* Thread); WINPR_API RPC_STATUS RpcCancelThread(void* Thread);
WINPR_API RPC_STATUS RpcCancelThreadEx(void* Thread, long Timeout); WINPR_API RPC_STATUS RpcCancelThreadEx(void* Thread, long Timeout);

View File

@ -996,8 +996,8 @@ WINPR_API SECURITY_STATUS SEC_ENTRY VerifySignature(PCtxtHandle phContext, PSecB
/* Custom API */ /* Custom API */
WINPR_API void sspi_GlobalInit(); WINPR_API void sspi_GlobalInit(void);
WINPR_API void sspi_GlobalFinish(); WINPR_API void sspi_GlobalFinish(void);
WINPR_API void sspi_SecBufferAlloc(PSecBuffer SecBuffer, size_t size); WINPR_API void sspi_SecBufferAlloc(PSecBuffer SecBuffer, size_t size);
WINPR_API void sspi_SecBufferFree(PSecBuffer SecBuffer); WINPR_API void sspi_SecBufferFree(PSecBuffer SecBuffer);

View File

@ -69,8 +69,8 @@ struct _TP_CLEANUP_GROUP
#ifndef _WIN32 #ifndef _WIN32
PTP_POOL GetDefaultThreadpool(); PTP_POOL GetDefaultThreadpool(void);
PTP_CALLBACK_ENVIRON GetDefaultThreadpoolEnvironment(); PTP_CALLBACK_ENVIRON GetDefaultThreadpoolEnvironment(void);
#endif #endif

View File

@ -30,7 +30,7 @@ struct _CREDSSP_CONTEXT
}; };
typedef struct _CREDSSP_CONTEXT CREDSSP_CONTEXT; typedef struct _CREDSSP_CONTEXT CREDSSP_CONTEXT;
CREDSSP_CONTEXT* credssp_ContextNew(); CREDSSP_CONTEXT* credssp_ContextNew(void);
void credssp_ContextFree(CREDSSP_CONTEXT* context); void credssp_ContextFree(CREDSSP_CONTEXT* context);
#endif /* WINPR_SSPI_CREDSSP_PRIVATE_H */ #endif /* WINPR_SSPI_CREDSSP_PRIVATE_H */

View File

@ -275,7 +275,7 @@ struct _NTLM_CONTEXT
}; };
typedef struct _NTLM_CONTEXT NTLM_CONTEXT; typedef struct _NTLM_CONTEXT NTLM_CONTEXT;
NTLM_CONTEXT* ntlm_ContextNew(); NTLM_CONTEXT* ntlm_ContextNew(void);
void ntlm_ContextFree(NTLM_CONTEXT* context); void ntlm_ContextFree(NTLM_CONTEXT* context);
#ifdef WITH_DEBUG_NLA #ifdef WITH_DEBUG_NLA

View File

@ -45,7 +45,7 @@ struct _NEGOTIATE_CONTEXT
}; };
typedef struct _NEGOTIATE_CONTEXT NEGOTIATE_CONTEXT; typedef struct _NEGOTIATE_CONTEXT NEGOTIATE_CONTEXT;
NEGOTIATE_CONTEXT* negotiate_ContextNew(); NEGOTIATE_CONTEXT* negotiate_ContextNew(void);
void negotiate_ContextFree(NEGOTIATE_CONTEXT* context); void negotiate_ContextFree(NEGOTIATE_CONTEXT* context);
#endif /* WINPR_SSPI_NEGOTIATE_PRIVATE_H */ #endif /* WINPR_SSPI_NEGOTIATE_PRIVATE_H */

View File

@ -42,7 +42,7 @@ struct _SCHANNEL_CONTEXT
}; };
typedef struct _SCHANNEL_CONTEXT SCHANNEL_CONTEXT; typedef struct _SCHANNEL_CONTEXT SCHANNEL_CONTEXT;
SCHANNEL_CONTEXT* schannel_ContextNew(); SCHANNEL_CONTEXT* schannel_ContextNew(void);
void schannel_ContextFree(SCHANNEL_CONTEXT* context); void schannel_ContextFree(SCHANNEL_CONTEXT* context);
#endif /* WINPR_SSPI_SCHANNEL_PRIVATE_H */ #endif /* WINPR_SSPI_SCHANNEL_PRIVATE_H */

View File

@ -52,7 +52,7 @@ SECURITY_STATUS schannel_openssl_server_process_tokens(SCHANNEL_OPENSSL* context
SECURITY_STATUS schannel_openssl_encrypt_message(SCHANNEL_OPENSSL* context, PSecBufferDesc pMessage); SECURITY_STATUS schannel_openssl_encrypt_message(SCHANNEL_OPENSSL* context, PSecBufferDesc pMessage);
SECURITY_STATUS schannel_openssl_decrypt_message(SCHANNEL_OPENSSL* context, PSecBufferDesc pMessage); SECURITY_STATUS schannel_openssl_decrypt_message(SCHANNEL_OPENSSL* context, PSecBufferDesc pMessage);
SCHANNEL_OPENSSL* schannel_openssl_new(); SCHANNEL_OPENSSL* schannel_openssl_new(void);
void schannel_openssl_free(SCHANNEL_OPENSSL* context); void schannel_openssl_free(SCHANNEL_OPENSSL* context);
#endif /* WINPR_SSPI_SCHANNEL_OPENSSL_H */ #endif /* WINPR_SSPI_SCHANNEL_OPENSSL_H */

View File

@ -30,12 +30,12 @@ struct _CREDENTIALS
}; };
typedef struct _CREDENTIALS CREDENTIALS; typedef struct _CREDENTIALS CREDENTIALS;
CREDENTIALS* sspi_CredentialsNew(); CREDENTIALS* sspi_CredentialsNew(void);
void sspi_CredentialsFree(CREDENTIALS* credentials); void sspi_CredentialsFree(CREDENTIALS* credentials);
PSecBuffer sspi_FindSecBuffer(PSecBufferDesc pMessage, ULONG BufferType); PSecBuffer sspi_FindSecBuffer(PSecBufferDesc pMessage, ULONG BufferType);
SecHandle* sspi_SecureHandleAlloc(); SecHandle* sspi_SecureHandleAlloc(void);
void sspi_SecureHandleInit(SecHandle* handle); void sspi_SecureHandleInit(SecHandle* handle);
void sspi_SecureHandleInvalidate(SecHandle* handle); void sspi_SecureHandleInvalidate(SecHandle* handle);
void* sspi_SecureHandleGetLowerPointer(SecHandle* handle); void* sspi_SecureHandleGetLowerPointer(SecHandle* handle);