mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Add g_application_command_line_get_stdin()
This returns a GInputStream corresponding to the stdin on the commandline that caused this invocation. The local case works on both UNIX (GUnixInputStream on stdin) and Windows (GWin32InputStream on GetStdHandle(STD_INPUT_HANDLE)). The remote case works only on UNIX (by fd passing over D-Bus). https://bugzilla.gnome.org/show_bug.cgi?id=668210
This commit is contained in:
@@ -62,12 +62,13 @@ struct _GApplicationCommandLineClass
|
||||
/*< private >*/
|
||||
GObjectClass parent_class;
|
||||
|
||||
void (* print_literal) (GApplicationCommandLine *cmdline,
|
||||
const gchar *message);
|
||||
void (* printerr_literal) (GApplicationCommandLine *cmdline,
|
||||
const gchar *message);
|
||||
void (* print_literal) (GApplicationCommandLine *cmdline,
|
||||
const gchar *message);
|
||||
void (* printerr_literal) (GApplicationCommandLine *cmdline,
|
||||
const gchar *message);
|
||||
GInputStream * (* get_stdin) (GApplicationCommandLine *cmdline);
|
||||
|
||||
gpointer padding[12];
|
||||
gpointer padding[11];
|
||||
};
|
||||
|
||||
GType g_application_command_line_get_type (void) G_GNUC_CONST;
|
||||
@@ -75,6 +76,8 @@ GType g_application_command_line_get_type (void) G
|
||||
gchar ** g_application_command_line_get_arguments (GApplicationCommandLine *cmdline,
|
||||
int *argc);
|
||||
|
||||
GInputStream * g_application_command_line_get_stdin (GApplicationCommandLine *cmdline);
|
||||
|
||||
const gchar * const * g_application_command_line_get_environ (GApplicationCommandLine *cmdline);
|
||||
|
||||
const gchar * g_application_command_line_getenv (GApplicationCommandLine *cmdline,
|
||||
|
Reference in New Issue
Block a user