diff options
Diffstat (limited to 'bbot/agent')
-rw-r--r-- | bbot/agent | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |