aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/agent')
-rw-r--r--bbot/agent10
1 files changed, 10 insertions, 0 deletions
diff --git a/bbot/agent b/bbot/agent
index c333fe5..619fb36 100644
--- a/bbot/agent
+++ b/bbot/agent
@@ -5,6 +5,8 @@
#ifndef BBOT_AGENT
#define BBOT_AGENT
+#include <sys/types.h> // uid_t
+
#include <bbot/types>
#include <bbot/utility>
@@ -19,6 +21,14 @@ namespace bbot
extern string tc_name; // Toolchain name.
extern string tc_num; // Toolchain number.
extern string tc_id; // Toolchain id.
+
+ extern uid_t uid; // Our effective user id.
+ extern string uname; // Our effective user name.
+
+ // Return the IPv4 address of an interface.
+ //
+ string
+ iface_addr (const string&);
}
#endif // BBOT_AGENT