~phablet-team/aethercast/fix-for-microsoft-dongle

« back to all changes in this revision

Viewing changes to src/mcs/networkutils.h

  • Committer: Tarmac
  • Author(s): Simon Fels
  • Date: 2016-03-04 14:14:09 UTC
  • mfrom: (119.4.12 ac-networking-fixes)
  • Revision ID: tarmac-20160304141409-xe8khdgb43nha1fn
Multiple changes for Networking support:

* Add a DisconnectAll dbus method to allow the UI to easily disconnect
  any connected device. Just for the purpose of a demo.
* Return proper errors when scanning fails.
* Enable miracast mode for the WiFi driver if available.
* Set GO intent by default to 7. Should be higher if we're a sink.
* Print frequencies consider for GO negotiation
* Several minor fixes
* Enable unit tests again.

Approved by PS Jenkins bot, Thomas Voß.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef NETWORKUTILS_H_
19
19
#define NETWORKUTILS_H_
20
20
 
 
21
#include <string>
 
22
 
21
23
namespace mcs {
22
24
class NetworkUtils
23
25
{
29
31
                             unsigned char prefixlen, const char *broadcast);
30
32
    static int ResetInterface(int index);
31
33
    static int BytesAvailableToRead(int fd);
 
34
    static int SendDriverPrivateCommand(const std::string &ifname, const std::string &cmd);
32
35
};
33
36
} // namespace mcs
34
37
#endif