~pete-woods/ubuntu-app-launch/port-some-c-to-cpp

« back to all changes in this revision

Viewing changes to libubuntu-app-launch/second-exec-core.h

  • Committer: Pete Woods
  • Date: 2017-04-05 12:03:00 UTC
  • Revision ID: pete.woods@canonical.com-20170405120300-04ydh1qr9fnf7k1w
Initial port of second-exec-core.c to C++
      
* Still has remaining lifecycle issue

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
/*
3
 
 * Copyright 2013 Canonical Ltd.
 
2
 * Copyright 2013-2017 Canonical Ltd.
4
3
 *
5
4
 * This program is free software: you can redistribute it and/or modify it
6
5
 * under the terms of the GNU General Public License version 3, as published
16
15
 *
17
16
 * Authors:
18
17
 *     Ted Gould <ted.gould@canonical.com>
 
18
 *     Pete Woods <pete.woods@canonical.com>
19
19
 */
20
20
 
 
21
 
 
22
#pragma once
 
23
 
21
24
#include <gio/gio.h>
22
 
 
23
 
G_BEGIN_DECLS
24
 
 
25
 
gboolean second_exec (GDBusConnection * con, GCancellable * cancel, GPid pid, const gchar * app_id, const gchar * instance_id, gchar ** appuris);
26
 
 
27
 
G_END_DECLS
28
 
 
 
25
#include <memory>
 
26
#include <string>
 
27
#include <vector>
 
28
 
 
29
#include "application.h"
 
30
 
 
31
namespace ubuntu
 
32
{
 
33
namespace app_launch
 
34
{
 
35
 
 
36
void second_exec (std::shared_ptr<GDBusConnection> con, std::shared_ptr<GCancellable> cancel, GPid pid, const std::string& app_id, const std::string& instance_id, const std::vector<Application::URL>& appuris);
 
37
 
 
38
}
 
39
}