~hikiko/mir/mir.unity8-desktop-session

« back to all changes in this revision

Viewing changes to include/server/mir/frontend/shell.h

  • Committer: Stephen M. Webb
  • Date: 2014-02-25 20:15:07 UTC
  • mfrom: (61.1.1 trusty-proposed)
  • Revision ID: stephen.webb@canonical.com-20140225201507-cicfzmdznvr059b2
merged from Ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright © 2012 Canonical Ltd.
 
2
 * Copyright © 2012-2014 Canonical Ltd.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it
5
5
 * under the terms of the GNU General Public License version 3,
20
20
#define MIR_FRONTEND_SHELL_H_
21
21
 
22
22
#include "mir/frontend/surface_id.h"
 
23
 
 
24
#include <sys/types.h>
 
25
 
23
26
#include <memory>
24
27
 
25
28
namespace mir
39
42
    virtual ~Shell() = default;
40
43
 
41
44
    virtual std::shared_ptr<Session> open_session(
42
 
        std::string const& name, std::shared_ptr<EventSink> const& sink) = 0;
 
45
        pid_t client_pid,
 
46
        std::string const& name,
 
47
        std::shared_ptr<EventSink> const& sink) = 0;
 
48
 
43
49
    virtual void close_session(std::shared_ptr<Session> const& session)  = 0;
44
50
 
45
51
    virtual SurfaceId create_surface_for(std::shared_ptr<Session> const& session,