2010-06-07 19:25:39 +02:00
|
|
|
/* GIO - GLib Input, Output and Streaming Library
|
|
|
|
*
|
|
|
|
* Copyright © 2010 Red Hat, Inc
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General
|
|
|
|
* Public License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* Authors: Colin Walters <walters@verbum.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "gioerror.h"
|
|
|
|
|
2010-06-16 06:18:09 +02:00
|
|
|
static gboolean
|
|
|
|
_g_application_platform_init (GApplication *app,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GError **error)
|
2010-06-07 19:25:39 +02:00
|
|
|
{
|
2010-06-16 06:18:09 +02:00
|
|
|
return TRUE;
|
2010-06-07 19:25:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
2010-06-16 06:18:09 +02:00
|
|
|
_g_application_platform_register (GApplication *app,
|
|
|
|
gboolean *unique,
|
|
|
|
GCancellable *cancellable,
|
|
|
|
GError **error)
|
2010-06-07 19:25:39 +02:00
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_g_application_platform_on_actions_changed (GApplication *app)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_g_application_platform_remote_invoke_action (GApplication *app,
|
2010-06-07 23:48:09 +02:00
|
|
|
const gchar *action,
|
2010-06-18 09:56:25 +02:00
|
|
|
GVariant *platform_data)
|
2010-06-07 19:25:39 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_g_application_platform_remote_quit (GApplication *app,
|
2010-06-18 09:56:25 +02:00
|
|
|
GVariant *platform_data)
|
2010-06-07 19:25:39 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_g_application_platform_default_quit (void)
|
|
|
|
{
|
|
|
|
exit (0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
_g_application_platform_activate (GApplication *app,
|
|
|
|
GVariant *data)
|
|
|
|
{
|
|
|
|
exit (0);
|
|
|
|
}
|