~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to gio/gapplicationcommandline.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Authors: Ryan Lortie <desrt@desrt.ca>
21
21
 */
22
22
 
 
23
#ifndef __G_APPLICATION_COMMAND_LINE_H__
 
24
#define __G_APPLICATION_COMMAND_LINE_H__
 
25
 
23
26
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
24
27
#error "Only <gio/gio.h> can be included directly."
25
28
#endif
26
29
 
27
 
#ifndef __G_APPLICATION_COMMAND_LINE_H__
28
 
#define __G_APPLICATION_COMMAND_LINE_H__
29
 
 
30
30
#include <gio/giotypes.h>
31
31
 
32
32
G_BEGIN_DECLS
62
62
  /*< private >*/
63
63
  GObjectClass parent_class;
64
64
 
65
 
  void (* print_literal)    (GApplicationCommandLine *cmdline,
66
 
                             const gchar             *message);
67
 
  void (* printerr_literal) (GApplicationCommandLine *cmdline,
68
 
                             const gchar             *message);
 
65
  void                  (* print_literal)       (GApplicationCommandLine *cmdline,
 
66
                                                 const gchar             *message);
 
67
  void                  (* printerr_literal)    (GApplicationCommandLine *cmdline,
 
68
                                                 const gchar             *message);
 
69
  GInputStream *        (* get_stdin)           (GApplicationCommandLine *cmdline);
69
70
 
70
 
  gpointer padding[12];
 
71
  gpointer padding[11];
71
72
};
72
73
 
 
74
GLIB_AVAILABLE_IN_ALL
73
75
GType                   g_application_command_line_get_type             (void) G_GNUC_CONST;
74
76
 
 
77
GLIB_AVAILABLE_IN_ALL
75
78
gchar **                g_application_command_line_get_arguments        (GApplicationCommandLine   *cmdline,
76
79
                                                                         int                       *argc);
77
80
 
 
81
GLIB_AVAILABLE_IN_2_36
 
82
GInputStream *          g_application_command_line_get_stdin            (GApplicationCommandLine   *cmdline);
 
83
 
 
84
GLIB_AVAILABLE_IN_ALL
78
85
const gchar * const *   g_application_command_line_get_environ          (GApplicationCommandLine   *cmdline);
79
86
 
 
87
GLIB_AVAILABLE_IN_ALL
80
88
const gchar *           g_application_command_line_getenv               (GApplicationCommandLine   *cmdline,
81
89
                                                                         const gchar               *name);
82
90
 
 
91
GLIB_AVAILABLE_IN_ALL
83
92
const gchar *           g_application_command_line_get_cwd              (GApplicationCommandLine   *cmdline);
84
93
 
 
94
GLIB_AVAILABLE_IN_ALL
85
95
gboolean                g_application_command_line_get_is_remote        (GApplicationCommandLine   *cmdline);
86
96
 
 
97
GLIB_AVAILABLE_IN_ALL
87
98
void                    g_application_command_line_print                (GApplicationCommandLine   *cmdline,
88
99
                                                                         const gchar               *format,
89
100
                                                                         ...) G_GNUC_PRINTF(2, 3);
 
101
GLIB_AVAILABLE_IN_ALL
90
102
void                    g_application_command_line_printerr             (GApplicationCommandLine   *cmdline,
91
103
                                                                         const gchar               *format,
92
104
                                                                         ...) G_GNUC_PRINTF(2, 3);
93
105
 
 
106
GLIB_AVAILABLE_IN_ALL
94
107
int                     g_application_command_line_get_exit_status      (GApplicationCommandLine   *cmdline);
 
108
GLIB_AVAILABLE_IN_ALL
95
109
void                    g_application_command_line_set_exit_status      (GApplicationCommandLine   *cmdline,
96
110
                                                                         int                        exit_status);
97
111
 
 
112
GLIB_AVAILABLE_IN_ALL
98
113
GVariant *              g_application_command_line_get_platform_data    (GApplicationCommandLine   *cmdline);
99
114
 
 
115
GLIB_AVAILABLE_IN_2_36
 
116
GFile *                 g_application_command_line_create_file_for_arg  (GApplicationCommandLine   *cmdline,
 
117
                                                                         const gchar               *arg);
 
118
 
100
119
G_END_DECLS
101
120
 
102
121
#endif /* __G_APPLICATION_COMMAND_LINE_H__ */