Bug 621213 – GDBusProxy and well-known names
[platform/upstream/glib.git] / gio / gnullapplication.c
1 /* GIO - GLib Input, Output and Streaming Library
2  *
3  * Copyright © 2010 Red Hat, Inc
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General
16  * Public License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18  * Boston, MA 02111-1307, USA.
19  *
20  * Authors: Colin Walters <walters@verbum.org>
21  */
22
23 #include <string.h>
24 #include <stdlib.h>
25
26 #include "gioerror.h"
27
28 static void
29 _g_application_platform_init (GApplication *app)
30 {
31 }
32
33 static gboolean
34 _g_application_platform_acquire_single_instance (GApplication  *app,
35                                                  GError       **error)
36 {
37   return TRUE;
38 }
39
40 static void
41 _g_application_platform_on_actions_changed (GApplication *app)
42 {
43 }
44
45 static void
46 _g_application_platform_remote_invoke_action (GApplication  *app,
47                                               const gchar   *action,
48                                               guint          timestamp)
49 {
50 }
51
52 static void
53 _g_application_platform_remote_quit (GApplication *app,
54                                      guint         timestamp)
55 {
56 }
57
58 static void
59 _g_application_platform_default_quit (void)
60 {
61   exit (0);
62 }
63
64 static void
65 _g_application_platform_activate (GApplication *app,
66                                   GVariant     *data)
67 {
68   exit (0);
69 }
70