20
20
* Authors: Ryan Lortie <desrt@desrt.ca>
23
#ifndef __G_APPLICATION_COMMAND_LINE_H__
24
#define __G_APPLICATION_COMMAND_LINE_H__
23
26
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
24
27
#error "Only <gio/gio.h> can be included directly."
27
#ifndef __G_APPLICATION_COMMAND_LINE_H__
28
#define __G_APPLICATION_COMMAND_LINE_H__
30
30
#include <gio/giotypes.h>
63
63
GObjectClass parent_class;
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);
73
75
GType g_application_command_line_get_type (void) G_GNUC_CONST;
75
78
gchar ** g_application_command_line_get_arguments (GApplicationCommandLine *cmdline,
81
GLIB_AVAILABLE_IN_2_36
82
GInputStream * g_application_command_line_get_stdin (GApplicationCommandLine *cmdline);
78
85
const gchar * const * g_application_command_line_get_environ (GApplicationCommandLine *cmdline);
80
88
const gchar * g_application_command_line_getenv (GApplicationCommandLine *cmdline,
81
89
const gchar *name);
83
92
const gchar * g_application_command_line_get_cwd (GApplicationCommandLine *cmdline);
85
95
gboolean g_application_command_line_get_is_remote (GApplicationCommandLine *cmdline);
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);
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,
112
GLIB_AVAILABLE_IN_ALL
98
113
GVariant * g_application_command_line_get_platform_data (GApplicationCommandLine *cmdline);
115
GLIB_AVAILABLE_IN_2_36
116
GFile * g_application_command_line_create_file_for_arg (GApplicationCommandLine *cmdline,
102
121
#endif /* __G_APPLICATION_COMMAND_LINE_H__ */