Skip to content

Commit

Permalink
Enhanced debuggery.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuehlner committed Oct 11, 2023
1 parent 096d3e7 commit 3ba4f0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/protocols/rdp/plugins/generate-entry-wrappers.pl
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,21 @@
#include "plugins/channels.h"
#include <freerdp/channels/channels.h>
#include <freerdp/freerdp.h>
#include <stdio.h>
EOF

# Generate wrapper definitions for PVIRTUALCHANNELENTRYEX entry point variant
print OUTPUT <<"EOF" for (1..$GUAC_RDP_MAX_CHANNELS);
static BOOL guac_rdp_plugin_entry_ex_wrapper$_(PCHANNEL_ENTRY_POINTS_EX entry_points_ex, PVOID init_handle) {
fprintf(stderr, \"Calling guac_rdp_plugin_entry_ex_wrapper $_ with (%p, %p)\\n\", (void*) entry_points_ex, (void*) init_handle);
return guac_rdp_wrapped_entry_ex[$_ - 1](entry_points_ex, init_handle);
}
EOF

# Generate wrapper definitions for PVIRTUALCHANNELENTRY entry point variant
print OUTPUT <<"EOF" for (1..$GUAC_RDP_MAX_CHANNELS);
static BOOL guac_rdp_plugin_entry_wrapper$_(PCHANNEL_ENTRY_POINTS entry_points) {
fprintf(stderr, \"Calling guac_rdp_plugin_entry_wrapper $_ with (%p)\\n\", (void*) entry_points);
return guac_rdp_wrapped_entry[$_ - 1](entry_points);
}
EOF
Expand Down

0 comments on commit 3ba4f0f

Please sign in to comment.