Skip to content

Commit

Permalink
[sdb] Export functions to register custom transports and do the hands…
Browse files Browse the repository at this point in the history
…hake.
  • Loading branch information
rolfbjarne authored and kumpera committed Nov 15, 2012
1 parent c94081e commit e9976e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mono/mini/debugger-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,12 @@ static DebuggerTransport *transport;
static DebuggerTransport transports [MAX_TRANSPORTS];
static int ntransports;

void
mono_debugger_agent_register_transport (DebuggerTransport *trans)
{
register_transport (trans);
}

static void
register_transport (DebuggerTransport *trans)
{
Expand Down Expand Up @@ -1450,6 +1456,12 @@ transport_recv (void *buf, int len)
return transport->recv (buf, len);
}

gboolean
mono_debugger_agent_transport_handshake (void)
{
return transport_handshake ();
}

static gboolean
transport_handshake (void)
{
Expand Down
3 changes: 3 additions & 0 deletions mono/mini/debugger-agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ mono_debugger_agent_debug_log (int level, MonoString *category, MonoString *mess
gboolean
mono_debugger_agent_debug_log_is_enabled (void) MONO_INTERNAL;

gboolean
mono_debugger_agent_transport_handshake (void) MONO_INTERNAL;

#endif

0 comments on commit e9976e8

Please sign in to comment.