~morphis/aethercast/sink-support

« back to all changes in this revision

Viewing changes to src/w11tng/p2pdevicestub.h

  • Committer: Simon Fels
  • Date: 2016-01-19 22:21:39 UTC
  • Revision ID: simon.fels@canonical.com-20160119222139-fb8x6l6m65lcbylv
Make us discoverable when the user requests it

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    bool DisconnectSync();
73
73
    void Flush();
74
74
    void Cancel();
75
 
    void Listen(const std::chrono::seconds &timeout);
 
75
    void Listen(unsigned int period, unsigned int interval);
76
76
 
77
77
    bool Scanning() const { return scan_timeout_source_ > 0; }
78
78
    bool Connected() const { return !!proxy_; }
104
104
    mcs::ScopedGObject<GDBusConnection> connection_;
105
105
    mcs::ScopedGObject<WpaSupplicantInterfaceP2PDevice> proxy_;
106
106
    std::chrono::seconds scan_timeout_;
 
107
    std::chrono::seconds discoverable_timeout_;
107
108
    guint scan_timeout_source_;
108
109
    std::unordered_map<std::string,w11tng::NetworkDevice::Ptr> devices_;
109
110
};