mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
Make GSocketSourceFunc return the GSocket
This is very useful when you have multiple sockets with sources.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#define __G_ASYNC_HELPER_H__
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@@ -37,6 +38,9 @@ typedef struct
|
||||
typedef gboolean (*GFDSourceFunc) (gpointer user_data,
|
||||
GIOCondition condition,
|
||||
int fd);
|
||||
typedef gboolean (*GFDSourceObjectFunc) (GObject *object,
|
||||
GIOCondition condition,
|
||||
gpointer user_data);
|
||||
|
||||
void _g_queue_async_result (GAsyncResultData *result,
|
||||
gpointer async_object,
|
||||
@@ -44,9 +48,13 @@ void _g_queue_async_result (GAsyncResultData *result,
|
||||
gpointer user_data,
|
||||
GSourceFunc source_func);
|
||||
|
||||
GSource *_g_fd_source_new (int fd,
|
||||
gushort events,
|
||||
GCancellable *cancellable);
|
||||
GSource *_g_fd_source_new_with_object (GObject *object,
|
||||
int fd,
|
||||
gushort events,
|
||||
GCancellable *cancellable);
|
||||
GSource *_g_fd_source_new (int fd,
|
||||
gushort events,
|
||||
GCancellable *cancellable);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user