Commit ec2c0f66 authored by Antenore Gatta's avatar Antenore Gatta

Using implicit identifier __func__ when calling TRACE_CALL

parent c7b4e27c
......@@ -57,7 +57,7 @@ static SecretCollection* defaultcollection;
static void remmina_plugin_glibsecret_unlock_secret_service()
{
TRACE_CALL("remmina_plugin_glibsecret_unlock_secret_service");
TRACE_CALL("__func__");
#ifdef LIBSECRET_VERSION_0_18
......@@ -83,7 +83,7 @@ static void remmina_plugin_glibsecret_unlock_secret_service()
void remmina_plugin_glibsecret_store_password(RemminaFile *remminafile, const gchar *key, const gchar *password)
{
TRACE_CALL("remmina_plugin_glibsecret_store_password");
TRACE_CALL("__func__");
GError *r = NULL;
const gchar *path;
gchar *s;
......@@ -109,7 +109,7 @@ void remmina_plugin_glibsecret_store_password(RemminaFile *remminafile, const gc
gchar*
remmina_plugin_glibsecret_get_password(RemminaFile *remminafile, const gchar *key)
{
TRACE_CALL("remmina_plugin_glibsecret_get_password");
TRACE_CALL("__func__");
GError *r = NULL;
const gchar *path;
gchar *password;
......@@ -135,7 +135,7 @@ remmina_plugin_glibsecret_get_password(RemminaFile *remminafile, const gchar *ke
void remmina_plugin_glibsecret_delete_password(RemminaFile *remminafile, const gchar *key)
{
TRACE_CALL("remmina_plugin_glibsecret_delete_password");
TRACE_CALL("__func__");
GError *r = NULL;
const gchar *path;
......@@ -161,7 +161,7 @@ TRUE, remmina_plugin_glibsecret_store_password, remmina_plugin_glibsecret_get_pa
G_MODULE_EXPORT gboolean
remmina_plugin_entry(RemminaPluginService *service)
{
TRACE_CALL("remmina_plugin_entry");
TRACE_CALL("__func__");
remmina_plugin_service = service;
......
......@@ -79,7 +79,7 @@ struct onMainThread_cb_data {
static gboolean onMainThread_cb(struct onMainThread_cb_data *d)
{
TRACE_CALL("onMainThread_cb");
TRACE_CALL("__func__");
if ( !d->cancelled ) {
switch( d->func ) {
case FUNC_GTK_SOCKET_ADD_ID:
......@@ -97,7 +97,7 @@ static gboolean onMainThread_cb(struct onMainThread_cb_data *d)
static void onMainThread_cleanup_handler(gpointer data)
{
TRACE_CALL("onMainThread_cleanup_handler");
TRACE_CALL("__func__");
struct onMainThread_cb_data *d = data;
d->cancelled = TRUE;
}
......@@ -105,7 +105,7 @@ static void onMainThread_cleanup_handler(gpointer data)
static void onMainThread_schedule_callback_and_wait( struct onMainThread_cb_data *d )
{
TRACE_CALL("onMainThread_schedule_callback_and_wait");
TRACE_CALL("__func__");
d->cancelled = FALSE;
pthread_cleanup_push( onMainThread_cleanup_handler, d );
pthread_mutex_init( &d->mu, NULL );
......@@ -121,7 +121,7 @@ static void onMainThread_schedule_callback_and_wait( struct onMainThread_cb_data
static void onMainThread_gtk_socket_add_id( GtkSocket* sk, Window w)
{
TRACE_CALL("onMainThread_gtk_socket_add_id");
TRACE_CALL("__func__");
struct onMainThread_cb_data *d;
......@@ -141,7 +141,7 @@ static void onMainThread_gtk_socket_add_id( GtkSocket* sk, Window w)
static gboolean remmina_plugin_nx_try_window_id(Window window_id)
{
TRACE_CALL("remmina_plugin_nx_try_window_id");
TRACE_CALL("__func__");
gint i;
gboolean found = FALSE;
......@@ -165,7 +165,7 @@ static gboolean remmina_plugin_nx_try_window_id(Window window_id)
static void remmina_plugin_nx_remove_window_id(Window window_id)
{
TRACE_CALL("remmina_plugin_nx_remove_window_id");
TRACE_CALL("__func__");
gint i;
gboolean found = FALSE;
......@@ -187,19 +187,19 @@ static void remmina_plugin_nx_remove_window_id(Window window_id)
static void remmina_plugin_nx_on_plug_added(GtkSocket *socket, RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_nx_on_plug_added");
TRACE_CALL("__func__");
remmina_plugin_nx_service->protocol_plugin_emit_signal(gp, "connect");
}
static void remmina_plugin_nx_on_plug_removed(GtkSocket *socket, RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_nx_on_plug_removed");
TRACE_CALL("__func__");
remmina_plugin_nx_service->protocol_plugin_close_connection(gp);
}
gboolean remmina_plugin_nx_ssh_auth_callback(gchar **passphrase, gpointer userdata)
{
TRACE_CALL("remmina_plugin_nx_ssh_auth_callback");
TRACE_CALL("__func__");
RemminaProtocolWidget *gp = (RemminaProtocolWidget*) userdata;
gint ret;
......@@ -215,7 +215,7 @@ gboolean remmina_plugin_nx_ssh_auth_callback(gchar **passphrase, gpointer userda
static void remmina_plugin_nx_on_proxy_exit(GPid pid, gint status, gpointer data)
{
TRACE_CALL("remmina_plugin_nx_on_proxy_exit");
TRACE_CALL("__func__");
RemminaProtocolWidget *gp = (RemminaProtocolWidget*) data;
remmina_plugin_nx_service->protocol_plugin_close_connection(gp);
......@@ -223,13 +223,13 @@ static void remmina_plugin_nx_on_proxy_exit(GPid pid, gint status, gpointer data
static int remmina_plugin_nx_dummy_handler(Display *dsp, XErrorEvent *err)
{
TRACE_CALL("remmina_plugin_nx_dummy_handler");
TRACE_CALL("__func__");
return 0;
}
static gboolean remmina_plugin_nx_start_create_notify(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_nx_start_create_notify");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
gpdata->display = XOpenDisplay(gdk_display_get_name(gdk_display_get_default()));
......@@ -245,7 +245,7 @@ static gboolean remmina_plugin_nx_start_create_notify(RemminaProtocolWidget *gp)
static gboolean remmina_plugin_nx_monitor_create_notify(RemminaProtocolWidget *gp, const gchar *cmd)
{
TRACE_CALL("remmina_plugin_nx_monitor_create_notify");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata;
Atom atom;
XEvent xev;
......@@ -301,7 +301,7 @@ static gboolean remmina_plugin_nx_monitor_create_notify(RemminaProtocolWidget *g
static gint remmina_plugin_nx_wait_signal(RemminaPluginNxData *gpdata)
{
TRACE_CALL("remmina_plugin_nx_wait_signal");
TRACE_CALL("__func__");
fd_set set;
guchar dummy = 0;
......@@ -316,7 +316,7 @@ static gint remmina_plugin_nx_wait_signal(RemminaPluginNxData *gpdata)
static gboolean remmina_plugin_nx_start_session(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_nx_start_session");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
RemminaFile *remminafile;
RemminaNXSession *nx;
......@@ -553,7 +553,7 @@ static gboolean remmina_plugin_nx_start_session(RemminaProtocolWidget *gp)
static gboolean remmina_plugin_nx_main(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_nx_main");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
gboolean ret;
const gchar *err;
......@@ -575,7 +575,7 @@ static gboolean remmina_plugin_nx_main(RemminaProtocolWidget *gp)
static gpointer remmina_plugin_nx_main_thread(gpointer data)
{
TRACE_CALL("remmina_plugin_nx_main_thread");
TRACE_CALL("__func__");
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
CANCEL_ASYNC
......@@ -588,7 +588,7 @@ static gpointer remmina_plugin_nx_main_thread(gpointer data)
static void remmina_plugin_nx_init(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_nx_init");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata;
gint flags;
......@@ -617,7 +617,7 @@ static void remmina_plugin_nx_init(RemminaProtocolWidget *gp)
static gboolean remmina_plugin_nx_open_connection(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_nx_open_connection");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
RemminaFile *remminafile;
const gchar *resolution;
......@@ -664,7 +664,7 @@ static gboolean remmina_plugin_nx_open_connection(RemminaProtocolWidget *gp)
static gboolean remmina_plugin_nx_close_connection(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_nx_close_connection");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
if (gpdata->thread)
......@@ -707,7 +707,7 @@ static gboolean remmina_plugin_nx_close_connection(RemminaProtocolWidget *gp)
/* Send CTRL+ALT+DEL keys keystrokes to the plugin socket widget */
static void remmina_plugin_nx_send_ctrlaltdel(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_plugin_xdmcp_send_ctrlaltdel");
TRACE_CALL("__func__");
guint keys[] = { GDK_KEY_Control_L, GDK_KEY_Alt_L, GDK_KEY_Delete };
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
......@@ -717,13 +717,13 @@ static void remmina_plugin_nx_send_ctrlaltdel(RemminaProtocolWidget *gp)
static gboolean remmina_plugin_nx_query_feature(RemminaProtocolWidget *gp, const RemminaProtocolFeature *feature)
{
TRACE_CALL("remmina_plugin_nx_query_feature");
TRACE_CALL("__func__");
return TRUE;
}
static void remmina_plugin_nx_call_feature(RemminaProtocolWidget *gp, const RemminaProtocolFeature *feature)
{
TRACE_CALL("remmina_plugin_nx_call_feature");
TRACE_CALL("__func__");
switch (feature->id)
{
case REMMINA_PLUGIN_NX_FEATURE_TOOL_SENDCTRLALTDEL:
......@@ -817,7 +817,7 @@ static RemminaProtocolPlugin remmina_plugin_nx =
G_MODULE_EXPORT gboolean
remmina_plugin_entry(RemminaPluginService *service)
{
TRACE_CALL("remmina_plugin_entry");
TRACE_CALL("__func__");
Display *dpy;
XkbRF_VarDefsRec vd;
gchar *s;
......
This diff is collapsed.
......@@ -40,7 +40,7 @@
static void remmina_nx_session_manager_set_sensitive(RemminaProtocolWidget *gp, gboolean sensitive)
{
TRACE_CALL("remmina_nx_session_manager_set_sensitive");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
if (gpdata->attach_session)
......@@ -58,7 +58,7 @@ static void remmina_nx_session_manager_set_sensitive(RemminaProtocolWidget *gp,
static gboolean remmina_nx_session_manager_selection_func(GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path,
gboolean path_currently_selected, gpointer user_data)
{
TRACE_CALL("remmina_nx_session_manager_selection_func");
TRACE_CALL("__func__");
RemminaProtocolWidget *gp = (RemminaProtocolWidget*) user_data;
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
......@@ -78,7 +78,7 @@ static gboolean remmina_nx_session_manager_selection_func(GtkTreeSelection *sele
static void remmina_nx_session_manager_send_signal(RemminaPluginNxData *gpdata, gint event_type)
{
TRACE_CALL("remmina_nx_session_manager_send_signal");
TRACE_CALL("__func__");
guchar dummy = (guchar) event_type;
/* Signal the NX thread to resume execution */
if (write(gpdata->event_pipe[1], &dummy, 1))
......@@ -88,7 +88,7 @@ static void remmina_nx_session_manager_send_signal(RemminaPluginNxData *gpdata,
static void remmina_nx_session_manager_on_response(GtkWidget *dialog, gint response_id, RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_nx_session_manager_on_response");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
gint event_type;
......@@ -121,7 +121,7 @@ static void remmina_nx_session_manager_on_response(GtkWidget *dialog, gint respo
* Automatically close the dialog using the default response id */
void remmina_nx_session_manager_on_row_activated(GtkTreeView *tree, GtkTreePath *path, GtkTreeViewColumn *column, RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_nx_session_manager_row_activated");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
remmina_plugin_nx_service->log_printf("[NX] Default response_id %d\n",
gpdata->default_response);
......@@ -134,7 +134,7 @@ void remmina_nx_session_manager_on_row_activated(GtkTreeView *tree, GtkTreePath
static gboolean remmina_nx_session_manager_main(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_nx_session_manager_main");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
RemminaFile *remminafile;
GtkWidget *dialog;
......@@ -251,7 +251,7 @@ static gboolean remmina_nx_session_manager_main(RemminaProtocolWidget *gp)
void remmina_nx_session_manager_start(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_nx_session_manager_start");
TRACE_CALL("__func__");
RemminaPluginNxData *gpdata = GET_PLUGIN_DATA(gp);
if (gpdata->session_manager_start_handler == 0)
......
......@@ -46,7 +46,7 @@
UINT32 remmina_rdp_cliprdr_get_format_from_gdkatom(GdkAtom atom)
{
TRACE_CALL("remmina_rdp_cliprdr_get_format_from_gdkatom");
TRACE_CALL("__func__");
UINT32 rc;
gchar* name = gdk_atom_name(atom);
rc = 0;
......@@ -80,7 +80,7 @@ UINT32 remmina_rdp_cliprdr_get_format_from_gdkatom(GdkAtom atom)
void remmina_rdp_cliprdr_get_target_types(UINT32** formats, UINT16* size, GdkAtom* types, int count)
{
TRACE_CALL("remmina_rdp_cliprdr_get_target_types");
TRACE_CALL("__func__");
int i;
*size = 1;
*formats = (UINT32*) malloc(sizeof(UINT32) * (count+1));
......@@ -101,7 +101,7 @@ void remmina_rdp_cliprdr_get_target_types(UINT32** formats, UINT16* size, GdkAto
static UINT8* lf2crlf(UINT8* data, int* size)
{
TRACE_CALL("lf2crlf");
TRACE_CALL("__func__");
UINT8 c;
UINT8* outbuf;
UINT8* out;
......@@ -137,7 +137,7 @@ static UINT8* lf2crlf(UINT8* data, int* size)
static void crlf2lf(UINT8* data, size_t* size)
{
TRACE_CALL("crlf2lf");
TRACE_CALL("__func__");
UINT8 c;
UINT8* out;
UINT8* in;
......@@ -159,18 +159,18 @@ static void crlf2lf(UINT8* data, size_t* size)
int remmina_rdp_cliprdr_server_file_contents_request(CliprdrClientContext* context, CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest)
{
TRACE_CALL("remmina_rdp_cliprdr_server_file_contents_request");
TRACE_CALL("__func__");
return -1;
}
int remmina_rdp_cliprdr_server_file_contents_response(CliprdrClientContext* context, CLIPRDR_FILE_CONTENTS_RESPONSE* fileContentsResponse)
{
TRACE_CALL("remmina_rdp_cliprdr_server_file_contents_response");
TRACE_CALL("__func__");
return 1;
}
void remmina_rdp_cliprdr_send_client_format_list(RemminaProtocolWidget *gp)
{
TRACE_CALL("remmina_rdp_cliprdr_send_client_format_list");
TRACE_CALL("__func__");
RemminaPluginRdpUiObject* ui;
rfContext* rfi = GET_PLUGIN_DATA(gp);
rfClipboard* clipboard;
......@@ -196,7 +196,7 @@ void remmina_rdp_cliprdr_send_client_format_list(RemminaProtocolWidget *gp)
static void remmina_rdp_cliprdr_send_client_capabilities(rfClipboard* clipboard)
{
TRACE_CALL("remmina_rdp_cliprdr_send_client_capabilities");
TRACE_CALL("__func__");
CLIPRDR_CAPABILITIES capabilities;
CLIPRDR_GENERAL_CAPABILITY_SET generalCapabilitySet;
......@@ -215,7 +215,7 @@ static void remmina_rdp_cliprdr_send_client_capabilities(rfClipboard* clipboard)
static UINT remmina_rdp_cliprdr_monitor_ready(CliprdrClientContext* context, CLIPRDR_MONITOR_READY* monitorReady)
{
TRACE_CALL("remmina_rdp_cliprdr_monitor_ready");
TRACE_CALL("__func__");
rfClipboard* clipboard = (rfClipboard*)context->custom;
RemminaProtocolWidget* gp;
......@@ -228,14 +228,14 @@ static UINT remmina_rdp_cliprdr_monitor_ready(CliprdrClientContext* context, CLI
static UINT remmina_rdp_cliprdr_server_capabilities(CliprdrClientContext* context, CLIPRDR_CAPABILITIES* capabilities)
{
TRACE_CALL("remmina_rdp_cliprdr_server_capabilities");
TRACE_CALL("__func__");
return CHANNEL_RC_OK;
}
static UINT remmina_rdp_cliprdr_server_format_list(CliprdrClientContext* context, CLIPRDR_FORMAT_LIST* formatList)
{
TRACE_CALL("remmina_rdp_cliprdr_server_format_list");
TRACE_CALL("__func__");
/* Called when a user do a "Copy" on the server: we collect all formats
* the server send us and then setup the local clipboard with the appropiate
......@@ -316,14 +316,14 @@ static UINT remmina_rdp_cliprdr_server_format_list(CliprdrClientContext* context
static UINT remmina_rdp_cliprdr_server_format_list_response(CliprdrClientContext* context, CLIPRDR_FORMAT_LIST_RESPONSE* formatListResponse)
{
TRACE_CALL("remmina_rdp_cliprdr_server_format_list_response");
TRACE_CALL("__func__");
return CHANNEL_RC_OK;
}
static UINT remmina_rdp_cliprdr_server_format_data_request(CliprdrClientContext* context, CLIPRDR_FORMAT_DATA_REQUEST* formatDataRequest)
{
TRACE_CALL("remmina_rdp_cliprdr_server_format_data_request");
TRACE_CALL("__func__");
RemminaPluginRdpUiObject* ui;
RemminaProtocolWidget* gp;
......@@ -344,7 +344,7 @@ static UINT remmina_rdp_cliprdr_server_format_data_request(CliprdrClientContext*
static UINT remmina_rdp_cliprdr_server_format_data_response(CliprdrClientContext* context, CLIPRDR_FORMAT_DATA_RESPONSE* formatDataResponse)
{
TRACE_CALL("remmina_rdp_cliprdr_server_format_data_response");
TRACE_CALL("__func__");
UINT8* data;
size_t size;
......@@ -483,7 +483,7 @@ static UINT remmina_rdp_cliprdr_server_format_data_response(CliprdrClientContext
void remmina_rdp_cliprdr_request_data(GtkClipboard *gtkClipboard, GtkSelectionData *selection_data, guint info, RemminaProtocolWidget* gp )
{
TRACE_CALL("remmina_rdp_cliprdr_request_data");
TRACE_CALL("__func__");
/* Called by GTK when someone press "Paste" on the client side.
* We ask to the server the data we need */
......@@ -560,13 +560,13 @@ void remmina_rdp_cliprdr_request_data(GtkClipboard *gtkClipboard, GtkSelectionDa
void remmina_rdp_cliprdr_empty_clipboard(GtkClipboard *gtkClipboard, rfClipboard *clipboard)
{
TRACE_CALL("remmina_rdp_cliprdr_empty_clipboard");
TRACE_CALL("__func__");
/* No need to do anything here */
}
CLIPRDR_FORMAT_LIST *remmina_rdp_cliprdr_get_client_format_list(RemminaProtocolWidget* gp)
{
TRACE_CALL("remmina_rdp_cliprdr_get_client_format_list")
TRACE_CALL("__func__");
GtkClipboard* gtkClipboard;
rfClipboard* clipboard;
......@@ -629,14 +629,14 @@ CLIPRDR_FORMAT_LIST *remmina_rdp_cliprdr_get_client_format_list(RemminaProtocolW
static void remmina_rdp_cliprdr_mt_get_format_list(RemminaProtocolWidget* gp, RemminaPluginRdpUiObject* ui)
{
TRACE_CALL("remmina_rdp_cliprdr_mt_get_format_list");
TRACE_CALL("__func__");
ui->retptr = (void *)remmina_rdp_cliprdr_get_client_format_list(gp);
}
void remmina_rdp_cliprdr_get_clipboard_data(RemminaProtocolWidget* gp, RemminaPluginRdpUiObject* ui)
{
TRACE_CALL("remmina_rdp_cliprdr_get_clipboard_data");
TRACE_CALL("__func__");
GtkClipboard* gtkClipboard;
rfClipboard* clipboard;
UINT8* inbuf = NULL;
......@@ -747,7 +747,7 @@ void remmina_rdp_cliprdr_get_clipboard_data(RemminaProtocolWidget* gp, RemminaPl
void remmina_rdp_cliprdr_set_clipboard_content(RemminaProtocolWidget* gp, RemminaPluginRdpUiObject* ui)
{
TRACE_CALL("remmina_rdp_cliprdr_set_clipboard_content");
TRACE_CALL("__func__");
GtkClipboard* gtkClipboard;
rfContext* rfi = GET_PLUGIN_DATA(gp);
......@@ -765,7 +765,7 @@ void remmina_rdp_cliprdr_set_clipboard_content(RemminaProtocolWidget* gp, Remmin
void remmina_rdp_cliprdr_set_clipboard_data(RemminaProtocolWidget* gp, RemminaPluginRdpUiObject* ui)
{
TRACE_CALL("remmina_rdp_cliprdr_set_clipboard_data");
TRACE_CALL("__func__");
GtkClipboard* gtkClipboard;
GtkTargetEntry* targets;
gint n_targets;
......@@ -788,7 +788,7 @@ static void remmina_rdp_cliprdr_detach_owner(RemminaProtocolWidget* gp, RemminaP
{
/* When closing a rdp connection, we should check if gp is a clipboard owner.
* If it's an owner, detach it from the clipboard */
TRACE_CALL("remmina_rdp_cliprdr_set_clipboard_data");
TRACE_CALL("__func__");
rfContext* rfi = GET_PLUGIN_DATA(gp);
GtkClipboard* gtkClipboard;
......@@ -801,7 +801,7 @@ static void remmina_rdp_cliprdr_detach_owner(RemminaProtocolWidget* gp, RemminaP
void remmina_rdp_event_process_clipboard(RemminaProtocolWidget* gp, RemminaPluginRdpUiObject* ui)
{
TRACE_CALL("remmina_rdp_event_process_clipboard");
TRACE_CALL("__func__");
switch (ui->clipboard.type)
{
......@@ -830,19 +830,19 @@ void remmina_rdp_event_process_clipboard(RemminaProtocolWidget* gp, RemminaPlugi
void remmina_rdp_clipboard_init(rfContext *rfi)
{
TRACE_CALL("remmina_rdp_clipboard_init");
TRACE_CALL("__func__");
// Future: initialize rfi->clipboard
}
void remmina_rdp_clipboard_free(rfContext *rfi)
{
TRACE_CALL("remmina_rdp_clipboard_free");
TRACE_CALL("__func__");
// Future: deinitialize rfi->clipboard
}
void remmina_rdp_cliprdr_init(rfContext* rfi, CliprdrClientContext* cliprdr)
{
TRACE_CALL("remmina_rdp_cliprdr_init");
TRACE_CALL("__func__");
rfClipboard* clipboard;
clipboard = &(rfi->clipboard);
......
This diff is collapsed.
......@@ -39,7 +39,7 @@
gboolean remmina_rdp_file_import_test(const gchar* from_file)
{
TRACE_CALL("remmina_rdp_file_import_test");
TRACE_CALL("__func__");
gchar* ext;
ext = strrchr(from_file, '.');
......@@ -60,7 +60,7 @@ gboolean remmina_rdp_file_import_test(const gchar* from_file)
static void remmina_rdp_file_import_field(RemminaFile* remminafile, const gchar* key, const gchar* value)
{
TRACE_CALL("remmina_rdp_file_import_field");
TRACE_CALL("__func__");
if (g_strcmp0(key, "desktopwidth") == 0)
{
remmina_plugin_service->file_set_string(remminafile, "resolution_width", value);
......@@ -158,7 +158,7 @@ static void remmina_rdp_file_import_field(RemminaFile* remminafile, const gchar*
static RemminaFile* remmina_rdp_file_import_channel(GIOChannel* channel)
{
TRACE_CALL("remmina_rdp_file_import_channel");
TRACE_CALL("__func__");
gchar* p;
const gchar* enc;
gchar* line = NULL;
......@@ -248,7 +248,7 @@ static RemminaFile* remmina_rdp_file_import_channel(GIOChannel* channel)
RemminaFile* remmina_rdp_file_import(const gchar* from_file)
{
TRACE_CALL("remmina_rdp_file_import");
TRACE_CALL("__func__");
GIOChannel* channel;
GError* error = NULL;
RemminaFile* remminafile;
......@@ -269,7 +269,7 @@ RemminaFile* remmina_rdp_file_import(const gchar* from_file)
gboolean remmina_rdp_file_export_test(RemminaFile* remminafile)
{
TRACE_CALL("remmina_rdp_file_export_test");
TRACE_CALL("__func__");
if (g_strcmp0(remmina_plugin_service->file_get_string(remminafile, "protocol"), "RDP") == 0)
return TRUE;
......@@ -278,7 +278,7 @@ gboolean remmina_rdp_file_export_test(RemminaFile* remminafile)
gboolean remmina_rdp_file_export_channel(RemminaFile* remminafile, FILE* fp)
{
TRACE_CALL("remmina_rdp_file_export_channel");
TRACE_CALL("__func__");
gchar* s;
gchar* p;
const gchar* cs;
......@@ -348,7 +348,7 @@ gboolean remmina_rdp_file_export_channel(RemminaFile* remminafile, FILE* fp)
gboolean remmina_rdp_file_export(RemminaFile* remminafile, const gchar* to_file)
{
TRACE_CALL("remmina_rdp_file_export");
TRACE_CALL("__func__");
FILE* fp;
gchar* p;
gboolean ret;
......
......@@ -50,7 +50,7 @@
BOOL rf_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
{
TRACE_CALL("rf_Bitmap_New");
TRACE_CALL("__func__");
#ifdef RF_BITMAP
UINT8* data;
Pixmap pixmap;
......@@ -92,7 +92,7 @@ BOOL rf_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
void rf_Bitmap_Free(rdpContext* context, rdpBitmap* bitmap)
{
TRACE_CALL("rf_Bitmap_Free");
TRACE_CALL("__func__");
#ifdef RF_BITMAP
rfContext* rfi = (rfContext*) context;
......@@ -105,7 +105,7 @@ void rf_Bitmap_Free(rdpContext* context, rdpBitmap* bitmap)
BOOL rf_Bitmap_Paint(rdpContext* context, rdpBitmap* bitmap)
{
TRACE_CALL("rf_Bitmap_Paint");
TRACE_CALL("__func__");
#ifdef RF_BITMAP
XImage* image;
int width, height;
......@@ -137,7 +137,7 @@ BOOL rf_Bitmap_Paint(rdpContext* context, rdpBitmap* bitmap)
BOOL rf_Bitmap_Decompress(rdpContext* context, rdpBitmap* bitmap,
const BYTE* data, UINT32 width, UINT32 height, UINT32 bpp, UINT32 length, BOOL compressed, UINT32 codec_id)
{
TRACE_CALL("rf_Bitmap_Decompress");
TRACE_CALL("__func__");
#ifdef RF_BITMAP
UINT16 size;
......@@ -175,7 +175,7 @@ BOOL rf_Bitmap_Decompress(rdpContext* context, rdpBitmap* bitmap,
BOOL rf_Bitmap_SetSurface(rdpContext* context, rdpBitmap* bitmap, BOOL primary)
{
TRACE_CALL("rf_Bitmap_SetSurface");
TRACE_CALL("__func__");
#ifdef RF_BITMAP
rfContext* rfi = (rfContext*) context;
......@@ -191,7 +191,7 @@ BOOL rf_Bitmap_SetSurface(rdpContext* context, rdpBitmap* bitmap, BOOL primary)
BOOL rf_Pointer_New(rdpContext* context, rdpPointer* pointer)
{
TRACE_CALL("rf_Pointer_New");
TRACE_CALL("__func__");
RemminaPluginRdpUiObject* ui;
rfContext* rfi = (rfContext*) context;
......@@ -209,7 +209,7 @@ BOOL rf_Pointer_New(rdpContext* context, rdpPointer* pointer)
void rf_Pointer_Free(rdpContext* context, rdpPointer* pointer)
{
TRACE_CALL("rf_Pointer_Free");
TRACE_CALL("__func__");
RemminaPluginRdpUiObject* ui;
rfContext* rfi = (rfContext*) context;
......@@ -230,7 +230,7 @@ void rf_Pointer_Free(rdpContext* context, rdpPointer* pointer)
BOOL rf_Pointer_Set(rdpContext* context, const rdpPointer* pointer)
{
TRACE_CALL("rf_Pointer_Set");
TRACE_CALL("__func__");
RemminaPluginRdpUiObject* ui;
rfContext* rfi = (rfContext*) context;
......@@ -245,7 +245,7 @@ BOOL rf_Pointer_Set(rdpContext* context, const rdpPointer* pointer)
BOOL rf_Pointer_SetNull(rdpContext* context)
{
TRACE_CALL("rf_Pointer_SetNull");
TRACE_CALL("__func__");
RemminaPluginRdpUiObject* ui;
rfContext* rfi = (rfContext*) context;
......@@ -258,7 +258,7 @@ BOOL rf_Pointer_SetNull(rdpContext* context)
BOOL rf_Pointer_SetDefault(rdpContext* context)
{
TRACE_CALL("rf_Pointer_SetDefault");
TRACE_CALL("__func__");
RemminaPluginRdpUiObject* ui;
rfContext* rfi = (rfContext*) context;
......@@ -271,7 +271,7 @@ BOOL rf_Pointer_SetDefault(rdpContext* context)
BOOL rf_Pointer_SetPosition(rdpContext* context, UINT32 x, UINT32 y)
{
TRACE_CALL("rf_Pointer_SePosition");
TRACE_CALL("__func__");
RemminaPluginRdpUiObject* ui;
rfContext* rfi = (rfContext*) context;
ui = g_new0(RemminaPluginRdpUiObject, 1);
......@@ -287,7 +287,7 @@ BOOL rf_Pointer_SetPosition(rdpContext* context, UINT32 x, UINT32 y)
BOOL rf_Glyph_New(rdpContext* context, const rdpGlyph* glyph)
{
TRACE_CALL("rf_Glyph_New");
TRACE_CALL("__func__");
#ifdef RF_GLYPH
int scanline;
XImage* image;
......@@ -316,7 +316,7 @@ BOOL rf_Glyph_New(rdpContext* context, const rdpGlyph* glyph)
void rf_Glyph_Free(rdpContext* context, rdpGlyph* glyph)
{
TRACE_CALL("rf_Glyph_Free");
TRACE_CALL("__func__");
#ifdef RF_GLYPH
rfContext* rfi = (rfContext*) context;
......@@ -329,7 +329,7 @@ static BOOL rf_Glyph_Draw(rdpContext* context, const rdpGlyph* glyph, UINT32 x,
UINT32 y, UINT32 w, UINT32 h, UINT32 sx, UINT32 sy,
BOOL fOpRedundant)
{
TRACE_CALL("rf_Glyph_Draw");
TRACE_CALL("__func__");
#ifdef RF_GLYPH
rfGlyph* rf_glyph;
rfContext* rfi = (rfContext*) context;
......@@ -348,7 +348,7 @@ static BOOL rf_Glyph_BeginDraw(rdpContext* context, UINT32 x, UINT32 y,
UINT32 width, UINT32 height, UINT32 bgcolor,
UINT32 fgcolor, BOOL fOpRedundant)
{
TRACE_CALL("rf_Glyph_BeginDraw");
TRACE_CALL("__func__");
#ifdef RF_GLYPH
rfContext* rfi = (rfContext*) context;
......@@ -376,7 +376,7 @@ static BOOL rf_Glyph_EndDraw(rdpContext* context, UINT32 x, UINT32 y,
UINT32 width, UINT32 height,
UINT32 bgcolor, UINT32 fgcolor)
{
TRACE_CALL("rf_Glyph_EndDraw");
TRACE_CALL("__func__");
#ifdef RF_GLYPH
rfContext* rfi = (rfContext*) context;
......@@ -393,7 +393,7 @@ static BOOL rf_Glyph_EndDraw(rdpContext* context, UINT32 x, UINT32 y,
void rf_register_graphics(rdpGraphics* graphics)
{
TRACE_CALL("rf_register_graphics");
TRACE_CALL("__func__");
rdpBitmap* bitmap;
rdpPointer* pointer;
rdpGlyph* glyph;
......