gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash ChangeLog gui/gtk.cpp gui/gtksup.h


From: Bastiaan Jacques
Subject: Re: [Gnash-commit] gnash ChangeLog gui/gtk.cpp gui/gtksup.h
Date: Fri, 28 Sep 2007 05:03:29 +0200 (CEST)



On Thu, 27 Sep 2007, strk wrote:

On Thu, Sep 27, 2007 at 07:26:04PM +0000, Bastiaan Jacques wrote:

+    /// Add a listener with default priority that listens for IN and HUP
+    /// events on a file descriptor.
+    //
+    /// @param fd The file descriptor to poll.
+    /// @param callback A pointer to a callback function with the following
+    ///                 signature:
+    ///        bool func(void*, int, void* data)
+    ///        The first and second arguments should be ignored.
+    ///        The last argument is a user-specified pointer. The
+    ///        callback should return false if the listener is to be removed.
+    /// @param data A pointer to a user-defined data structure.
+    /// @return true on success, false on failure.
+    bool addFDListener(int fd, callback_t callback, void* data);

The first and second arguments should be ignored ??

Yes. Since the first two arguments are data types from Glib, it is probably
undesirable to use them in GUI-neutral code. When we have a generic interface
in the GUI (base) class, we can do better. For now, though, this should get
the job done.

Bastiaan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]