~mir-team/mir/rename-everything

« back to all changes in this revision

Viewing changes to src/client/mir_connection.h

  • Committer: Tarmac
  • Author(s): Christopher James Halse Rogers, Christopher James Halse Rogers, Kevin Gunn
  • Date: 2015-01-28 06:19:07 UTC
  • mfrom: (2239.5.40 add-dispatchable-interface)
  • Revision ID: tarmac-20150128061907-0z33twh42elsk9ml
Add a Dispatchable interface, and transition StreamSocketTransport.
(LP: #1397375)

The Dispatchable interface is useful for anything that can provide a monitorable file descriptor. Fixes: https://bugs.launchpad.net/bugs/1397375.

Approved by PS Jenkins bot, Robert Carr, Alexandros Frantzis, Cemil Azizoglu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
{
70
70
class Logger;
71
71
}
 
72
 
 
73
namespace dispatch
 
74
{
 
75
class SimpleDispatchThread;
 
76
}
72
77
}
73
78
 
74
79
struct MirConnection : mir::client::ClientContext
192
197
 
193
198
    std::shared_ptr<mir::client::EventHandlerRegister> const event_handler_register;
194
199
 
 
200
    std::unique_ptr<mir::dispatch::SimpleDispatchThread> const eventloop;
 
201
 
195
202
    std::vector<int> extra_platform_data;
196
203
    
197
204
    std::shared_ptr<mir::client::ClientBufferStreamFactory> buffer_stream_factory;