]> Pileus Git - ~andy/gtk/blob - gtk/gtkmountoperationprivate.h
Bug 587485 – GMountOperation::show-processes support
[~andy/gtk] / gtk / gtkmountoperationprivate.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* GTK - The GIMP Toolkit
3  * Copyright (C) David Zeuthen <davidz@redhat.com>
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 Public
16  * 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
21 /*
22  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
23  * file for a list of people on the GTK+ Team.  See the ChangeLog
24  * files for a list of changes.  These files are distributed with
25  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
26  */
27
28 #ifndef __GTK_MOUNT_OPERATION_PRIVATE_H__
29 #define __GTK_MOUNT_OPERATION_PRIVATE_H__
30
31 #include <gio/gio.h>
32 #include <gdk/gdk.h>
33 #include <gdk-pixbuf/gdk-pixbuf.h>
34
35 struct _GtkMountOperationLookupContext;
36 typedef struct _GtkMountOperationLookupContext GtkMountOperationLookupContext;
37
38 GtkMountOperationLookupContext *_gtk_mount_operation_lookup_context_get  (GdkDisplay *display);
39
40 gboolean _gtk_mount_operation_lookup_info         (GtkMountOperationLookupContext *context,
41                                                    GPid                            pid,
42                                                    gint                            size_pixels,
43                                                    gchar                         **out_name,
44                                                    gchar                         **out_command_line,
45                                                    GdkPixbuf                     **out_pixbuf);
46
47 void     _gtk_mount_operation_lookup_context_free (GtkMountOperationLookupContext *context);
48
49 /* throw G_IO_ERROR_FAILED_HANDLED if a helper already reported the error to the user */
50 gboolean _gtk_mount_operation_kill_process (GPid      pid,
51                                             GError  **error);
52
53 #endif /* __GTK_MOUNT_OPERATION_PRIVATE_H__ */