X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgsocketlistener.h;h=157c2cd67db7dab9bb58e212f5c82d40c4679b40;hb=25990eb2b6da94e1d03631eab8a952ef84cb9986;hp=da09a784588964433fd59049772dad9a95790717;hpb=c005878ae7e429dd51f6be3d9a22b430c8155221;p=platform%2Fupstream%2Fglib.git
diff --git a/gio/gsocketlistener.h b/gio/gsocketlistener.h
index da09a78..157c2cd 100644
--- a/gio/gsocketlistener.h
+++ b/gio/gsocketlistener.h
@@ -15,9 +15,7 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see .
*
* Authors: Christian Kellner
* Samuel Cormier-Iijima
@@ -25,13 +23,13 @@
* Alexander Larsson
*/
+#ifndef __G_SOCKET_LISTENER_H__
+#define __G_SOCKET_LISTENER_H__
+
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only can be included directly."
#endif
-#ifndef __G_SOCKET_LISTENER_H__
-#define __G_SOCKET_LISTENER_H__
-
#include
G_BEGIN_DECLS
@@ -76,17 +74,22 @@ struct _GSocketListener
GSocketListenerPrivate *priv;
};
+GLIB_AVAILABLE_IN_ALL
GType g_socket_listener_get_type (void) G_GNUC_CONST;
+GLIB_AVAILABLE_IN_ALL
GSocketListener * g_socket_listener_new (void);
+GLIB_AVAILABLE_IN_ALL
void g_socket_listener_set_backlog (GSocketListener *listener,
int listen_backlog);
+GLIB_AVAILABLE_IN_ALL
gboolean g_socket_listener_add_socket (GSocketListener *listener,
GSocket *socket,
GObject *source_object,
GError **error);
+GLIB_AVAILABLE_IN_ALL
gboolean g_socket_listener_add_address (GSocketListener *listener,
GSocketAddress *address,
GSocketType type,
@@ -94,43 +97,52 @@ gboolean g_socket_listener_add_address (GSocket
GObject *source_object,
GSocketAddress **effective_address,
GError **error);
+GLIB_AVAILABLE_IN_ALL
gboolean g_socket_listener_add_inet_port (GSocketListener *listener,
guint16 port,
GObject *source_object,
GError **error);
+GLIB_AVAILABLE_IN_ALL
guint16 g_socket_listener_add_any_inet_port (GSocketListener *listener,
GObject *source_object,
GError **error);
+GLIB_AVAILABLE_IN_ALL
GSocket * g_socket_listener_accept_socket (GSocketListener *listener,
GObject **source_object,
GCancellable *cancellable,
GError **error);
+GLIB_AVAILABLE_IN_ALL
void g_socket_listener_accept_socket_async (GSocketListener *listener,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
+GLIB_AVAILABLE_IN_ALL
GSocket * g_socket_listener_accept_socket_finish (GSocketListener *listener,
GAsyncResult *result,
GObject **source_object,
GError **error);
+GLIB_AVAILABLE_IN_ALL
GSocketConnection * g_socket_listener_accept (GSocketListener *listener,
GObject **source_object,
GCancellable *cancellable,
GError **error);
+GLIB_AVAILABLE_IN_ALL
void g_socket_listener_accept_async (GSocketListener *listener,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
+GLIB_AVAILABLE_IN_ALL
GSocketConnection * g_socket_listener_accept_finish (GSocketListener *listener,
GAsyncResult *result,
GObject **source_object,
GError **error);
+GLIB_AVAILABLE_IN_ALL
void g_socket_listener_close (GSocketListener *listener);
G_END_DECLS