aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_hosts.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-06-26 19:07:46 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-06-26 19:07:46 +0000
commit5c9fac9cafe7d0911b80cc1aeab52b2e0d0cff9b (patch)
tree83d36490d61f8bb6d74bd21818aa47b2f7c37e95 /src/testbed/testbed_api_hosts.h
parent7eb788695c1411f6fbeb05d4fbef302d2a4dd7ee (diff)
downloadgnunet-5c9fac9cafe7d0911b80cc1aeab52b2e0d0cff9b.tar.gz
gnunet-5c9fac9cafe7d0911b80cc1aeab52b2e0d0cff9b.zip
testbed host registration
Diffstat (limited to 'src/testbed/testbed_api_hosts.h')
-rw-r--r--src/testbed/testbed_api_hosts.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_hosts.h b/src/testbed/testbed_api_hosts.h
index eaf2a4d11..db7392b49 100644
--- a/src/testbed/testbed_api_hosts.h
+++ b/src/testbed/testbed_api_hosts.h
@@ -66,6 +66,36 @@ GNUNET_TESTBED_host_get_id_ (const struct GNUNET_TESTBED_Host *host);
66 66
67 67
68/** 68/**
69 * Obtain the host's hostname.
70 *
71 * @param host handle to the host, NULL means 'localhost'
72 * @return hostname of the host
73 */
74const char *
75GNUNET_TESTBED_host_get_hostname_ (const struct GNUNET_TESTBED_Host *host);
76
77
78/**
79 * Obtain the host's username
80 *
81 * @param host handle to the host, NULL means 'localhost'
82 * @return username to login to the host
83 */
84const char *
85GNUNET_TESTBED_host_get_username_ (const struct GNUNET_TESTBED_Host *host);
86
87
88/**
89 * Obtain the host's ssh port
90 *
91 * @param host handle to the host, NULL means 'localhost'
92 * @return username to login to the host
93 */
94uint16_t
95GNUNET_TESTBED_host_get_ssh_port_ (const struct GNUNET_TESTBED_Host *host);
96
97
98/**
69 * Opaque wrapper around GNUNET_HELPER_Handle 99 * Opaque wrapper around GNUNET_HELPER_Handle
70 */ 100 */
71struct GNUNET_TESTBED_HelperHandle; 101struct GNUNET_TESTBED_HelperHandle;
@@ -94,5 +124,24 @@ GNUNET_TESTBED_host_run_ (const struct GNUNET_TESTBED_Host *host,
94void 124void
95GNUNET_TESTBED_host_stop_ (struct GNUNET_TESTBED_HelperHandle *handle); 125GNUNET_TESTBED_host_stop_ (struct GNUNET_TESTBED_HelperHandle *handle);
96 126
127
128/**
129 * Marks a host as registered with a controller
130 *
131 * @param host the host to mark
132 */
133void
134GNUNET_TESTBED_mark_host_as_registered_ (struct GNUNET_TESTBED_Host *host);
135
136
137/**
138 * Checks whether a host has been registered
139 *
140 * @param host the host to check
141 * @return GNUNET_YES if registered; GNUNET_NO if not
142 */
143int
144GNUNET_TESTBED_is_host_registered_ (const struct GNUNET_TESTBED_Host *host);
145
97#endif 146#endif
98/* end of testbed_api_hosts.h */ 147/* end of testbed_api_hosts.h */