aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent
blob: 14d2995b83fdf1cfcff60a13f5f9dd1869097eb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// file      : bbot/agent -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : TBC; see accompanying LICENSE file

#ifndef BBOT_AGENT
#define BBOT_AGENT

#include <sys/types.h> // uid_t

#include <bbot/types>
#include <bbot/utility>

#include <bbot/agent-options>

namespace bbot
{
  extern agent_options ops;

  extern const string bs_prot; // Bootstrap protocol version.

  extern string tc_name; // Toolchain name.
  extern size_t tc_num;  // Toolchain number.
  extern string tc_id;   // Toolchain id.

  extern strings controllers; // Controller URLs.

  extern string hname; // Our host name.
  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