~kdub/+junk/no-native

« back to all changes in this revision

Viewing changes to src/platform/shared_library_loader.cpp

  • Committer: Kevin DuBois
  • Date: 2014-11-19 19:30:10 UTC
  • mfrom: (2060.1.11 native-ipc-operations)
  • Revision ID: kevin.dubois@canonical.com-20141119193010-0va4n207jzx32brt
merge base branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright © 2013 Canonical Ltd.
 
2
 * Copyright © 2013-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 Lesser General Public License version 3,
18
18
 
19
19
#include "mir/shared_library_loader.h"
20
20
#include "mir/shared_library.h"
 
21
#include "mir/logging/logger.h"
21
22
#include <memory>
22
23
#include <map>
23
24
 
 
25
namespace ml = mir::logging;
 
26
 
24
27
mir::SharedLibrary const* mir::load_library(std::string const& libname)
25
28
{
26
29
    // There's no point in loading twice, and it isn't safe to unload...
32
35
    }
33
36
    else
34
37
    {
 
38
        ml::log(ml::Severity::informational, "Loading library : " + libname);
35
39
        ptr = std::make_shared<mir::SharedLibrary>(libname);
36
40
        return ptr.get();
37
41
    }