gio: GCancellable can be used concurrently
[platform/upstream/glib.git] / gio / gapplicationimpl.h
1 #include "giotypes.h"
2
3 typedef struct _GApplicationImpl GApplicationImpl;
4
5 typedef struct
6 {
7   gchar *name;
8
9   GVariantType *parameter_type;
10   gboolean      enabled;
11   GVariant     *state;
12 } RemoteActionInfo;
13
14 G_GNUC_INTERNAL
15 void                    g_application_impl_destroy                      (GApplicationImpl   *impl);
16
17 G_GNUC_INTERNAL
18 GApplicationImpl *      g_application_impl_register                     (GApplication       *application,
19                                                                          const gchar        *appid,
20                                                                          GApplicationFlags   flags,
21                                                                          GHashTable        **remote_actions,
22                                                                          GCancellable       *cancellable,
23                                                                          GError            **error);
24
25 G_GNUC_INTERNAL
26 void                    g_application_impl_activate                     (GApplicationImpl   *impl,
27                                                                          GVariant           *platform_data);
28
29 G_GNUC_INTERNAL
30 void                    g_application_impl_open                         (GApplicationImpl   *impl,
31                                                                          GFile             **files,
32                                                                          gint                n_files,
33                                                                          const gchar        *hint,
34                                                                          GVariant           *platform_data);
35
36 G_GNUC_INTERNAL
37 int                     g_application_impl_command_line                 (GApplicationImpl   *impl,
38                                                                          gchar             **arguments,
39                                                                          GVariant           *platform_data);
40
41 G_GNUC_INTERNAL
42 void                    g_application_impl_change_action_state          (GApplicationImpl   *impl,
43                                                                          const gchar        *action_name,
44                                                                          GVariant           *value,
45                                                                          GVariant           *platform_data);
46
47 G_GNUC_INTERNAL
48 void                    g_application_impl_activate_action              (GApplicationImpl   *impl,
49                                                                          const gchar        *action_name,
50                                                                          GVariant           *parameter,
51                                                                          GVariant           *platform_data);
52
53 G_GNUC_INTERNAL
54 void                    g_application_impl_flush                        (GApplicationImpl   *impl);