xref: /haiku/src/kits/debugger/target_host_interface/network/NetworkTargetHostInterface.cpp (revision 692fe5550319c0342c9525e674b7f10105d977ee)
1 /*
2  * Copyright 2016, Rene Gollent, rene@gollent.com.
3  * Copyright 2016, Ingo Weinhold, ingo_weinhold@gmx.de.
4  * Distributed under the terms of the MIT License.
5  */
6 
7 #include "NetworkTargetHostInterface.h"
8 
9 #include <AutoDeleter.h>
10 #include <AutoLocker.h>
11 #include <system_info.h>
12 #include <util/KMessage.h>
13 
14 #include "debug_utils.h"
15 
16 #include "TargetHost.h"
17 
18 
19 NetworkTargetHostInterface::NetworkTargetHostInterface()
20 	:
21 	TargetHostInterface()
22 {
23 	SetName("Network");
24 }
25 
26 
27 NetworkTargetHostInterface::~NetworkTargetHostInterface()
28 {
29 	Close();
30 
31 	if (fTargetHost != NULL)
32 		fTargetHost->ReleaseReference();
33 }
34 
35 
36 status_t
37 NetworkTargetHostInterface::Init(Settings* settings)
38 {
39 	return B_NOT_SUPPORTED;
40 }
41 
42 
43 void
44 NetworkTargetHostInterface::Close()
45 {
46 }
47 
48 
49 bool
50 NetworkTargetHostInterface::IsLocal() const
51 {
52 	return false;
53 }
54 
55 
56 bool
57 NetworkTargetHostInterface::Connected() const
58 {
59 	return false;
60 }
61 
62 
63 TargetHost*
64 NetworkTargetHostInterface::GetTargetHost()
65 {
66 	return fTargetHost;
67 }
68 
69 
70 status_t
71 NetworkTargetHostInterface::Attach(team_id teamID, thread_id threadID,
72 	DebuggerInterface*& _interface) const
73 {
74 	return B_NOT_SUPPORTED;
75 }
76 
77 
78 status_t
79 NetworkTargetHostInterface::CreateTeam(int commandLineArgc,
80 	const char* const* arguments, team_id& _teamID) const
81 {
82 	return B_NOT_SUPPORTED;
83 }
84 
85 
86 status_t
87 NetworkTargetHostInterface::LoadCore(const char* coreFilePath,
88 	DebuggerInterface*& _interface, thread_id& _thread) const
89 {
90 	return B_NOT_SUPPORTED;
91 }
92 
93 
94 status_t
95 NetworkTargetHostInterface::FindTeamByThread(thread_id thread,
96 	team_id& _teamID) const
97 {
98 	return B_NOT_SUPPORTED;
99 }
100