~mir-team/mir/trunk

« back to all changes in this revision

Viewing changes to src/server/frontend/protobuf_message_processor.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2013-04-25 23:50:01 UTC
  • mfrom: (526.2.22 mir1)
  • Revision ID: tarmac-20130425235001-c3b3x2yyb3eldyx1
frontend, shell, tests: surface-states updated to avoid supplying dependencies through public member functions.

Approved by PS Jenkins bot, Chris Halse Rogers, Robert Ancell, Kevin DuBois.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
 
139
139
void mfd::ProtobufMessageProcessor::send_event(MirEvent const& e)
140
140
{
 
141
    // In future we might send multiple events, or insert them into messages
 
142
    // containing other responses, but for now we send them individually.
141
143
    mir::protobuf::EventSequence seq;
142
144
    mir::protobuf::Event *ev = seq.add_event();
143
145
    ev->set_raw(&e, sizeof(MirEvent));
146
148
    seq.SerializeToString(&buffer);
147
149
 
148
150
    mir::protobuf::wire::Result result;
149
 
    result.set_response(buffer);
 
151
    result.add_events(buffer);
150
152
 
151
153
    result.SerializeToString(&buffer);
152
154