mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Annotate API introduced for 2.30 with GLIB_AVAILABLE_IN_2_30
I didn't do this comprehensively, since there's a lot of it, mainly due to the GDBus object manager stuff, but anyone trying to use that would fail fast due to lack of the gdbus code generator. My main goal was to get API additions to existing classes like g_data_input_stream_read_line_utf8(), as well as the lower level new API like glib-unix.h. https://bugzilla.gnome.org/show_bug.cgi?id=676816
This commit is contained in:
@@ -58,6 +58,7 @@ struct _GActionInterface
|
||||
GVariant *parameter);
|
||||
};
|
||||
|
||||
GLIB_AVAILABLE_IN_2_30
|
||||
GType g_action_get_type (void) G_GNUC_CONST;
|
||||
|
||||
const gchar * g_action_get_name (GAction *action);
|
||||
|
@@ -102,6 +102,7 @@ char * g_data_input_stream_read_line (GDataInputStrea
|
||||
gsize *length,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GLIB_AVAILABLE_IN_2_30
|
||||
char * g_data_input_stream_read_line_utf8 (GDataInputStream *stream,
|
||||
gsize *length,
|
||||
GCancellable *cancellable,
|
||||
@@ -115,6 +116,7 @@ char * g_data_input_stream_read_line_finish (GDataInputStrea
|
||||
GAsyncResult *result,
|
||||
gsize *length,
|
||||
GError **error);
|
||||
GLIB_AVAILABLE_IN_2_30
|
||||
char * g_data_input_stream_read_line_finish_utf8(GDataInputStream *stream,
|
||||
GAsyncResult *result,
|
||||
gsize *length,
|
||||
|
@@ -181,6 +181,7 @@ GVariant *g_dbus_connection_call_sync (GDBusConnection
|
||||
gint timeout_msec,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GLIB_AVAILABLE_IN_2_30
|
||||
void g_dbus_connection_call_with_unix_fd_list (GDBusConnection *connection,
|
||||
const gchar *bus_name,
|
||||
const gchar *object_path,
|
||||
@@ -194,10 +195,12 @@ void g_dbus_connection_call_with_unix_fd_list (GDBusConnection
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GLIB_AVAILABLE_IN_2_30
|
||||
GVariant *g_dbus_connection_call_with_unix_fd_list_finish (GDBusConnection *connection,
|
||||
GUnixFDList **out_fd_list,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
GLIB_AVAILABLE_IN_2_30
|
||||
GVariant *g_dbus_connection_call_with_unix_fd_list_sync (GDBusConnection *connection,
|
||||
const gchar *bus_name,
|
||||
const gchar *object_path,
|
||||
|
Reference in New Issue
Block a user