mschorm / rpms / file

Forked from rpms/file 3 years ago
Clone
3fbcbe2
/* GIO - GLib Input, Output and Streaming Library
3fbcbe2
 *
3fbcbe2
 * Copyright (C) 2008 Red Hat, Inc.
3fbcbe2
 *
3fbcbe2
 * This library is free software; you can redistribute it and/or
3fbcbe2
 * modify it under the terms of the GNU Lesser General Public
3fbcbe2
 * License as published by the Free Software Foundation; either
3fbcbe2
 * version 2 of the License, or (at your option) any later version.
3fbcbe2
 *
3fbcbe2
 * This library is distributed in the hope that it will be useful,
3fbcbe2
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3fbcbe2
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3fbcbe2
 * Lesser General Public License for more details.
3fbcbe2
 *
3fbcbe2
 * You should have received a copy of the GNU Lesser General
3fbcbe2
 * Public License along with this library; if not, write to the
3fbcbe2
 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
3fbcbe2
 * Boston, MA 02111-1307, USA.
3fbcbe2
 */
3fbcbe2
3fbcbe2
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
3fbcbe2
#error "Only <gio/gio.h> can be included directly."
3fbcbe2
#endif
3fbcbe2
3fbcbe2
#ifndef __G_SOCKET_ADDRESS_ENUMERATOR_H__
3fbcbe2
#define __G_SOCKET_ADDRESS_ENUMERATOR_H__
3fbcbe2
3fbcbe2
#include <gio/giotypes.h>
3fbcbe2
3fbcbe2
G_BEGIN_DECLS
3fbcbe2
3fbcbe2
#define G_TYPE_SOCKET_ADDRESS_ENUMERATOR         (g_socket_address_enumerator_get_type ())
3fbcbe2
#define G_SOCKET_ADDRESS_ENUMERATOR(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_SOCKET_ADDRESS_ENUMERATOR, GSocketAddressEnumerator))
3fbcbe2
#define G_SOCKET_ADDRESS_ENUMERATOR_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_SOCKET_ADDRESS_ENUMERATOR, GSocketAddressEnumeratorClass))
3fbcbe2
#define G_IS_SOCKET_ADDRESS_ENUMERATOR(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_SOCKET_ADDRESS_ENUMERATOR))
3fbcbe2
#define G_IS_SOCKET_ADDRESS_ENUMERATOR_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SOCKET_ADDRESS_ENUMERATOR))
3fbcbe2
#define G_SOCKET_ADDRESS_ENUMERATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SOCKET_ADDRESS_ENUMERATOR, GSocketAddressEnumeratorClass))
3fbcbe2
3fbcbe2
/**
3fbcbe2
 * GSocketAddressEnumerator:
3fbcbe2
 *
3fbcbe2
 * Enumerator type for objects that contain or generate
3fbcbe2
 * #GSocketAddresses.
3fbcbe2
 */
3fbcbe2
typedef struct _GSocketAddressEnumeratorClass GSocketAddressEnumeratorClass;
3fbcbe2
3fbcbe2
struct _GSocketAddressEnumerator
3fbcbe2
{
3fbcbe2
  GObject parent_instance;
3fbcbe2
3fbcbe2
};
3fbcbe2
3fbcbe2
struct _GSocketAddressEnumeratorClass
3fbcbe2
{
3fbcbe2
  GObjectClass parent_class;
3fbcbe2
3fbcbe2
  /* Virtual Table */
3fbcbe2
3fbcbe2
  GSocketAddress * (* next)        (GSocketAddressEnumerator  *enumerator,
3fbcbe2
				    GCancellable              *cancellable,
3fbcbe2
				    GError                   **error);
3fbcbe2
3fbcbe2
  void             (* next_async)  (GSocketAddressEnumerator  *enumerator,
3fbcbe2
				    GCancellable              *cancellable,
3fbcbe2
				    GAsyncReadyCallback        callback,
3fbcbe2
				    gpointer                   user_data);
3fbcbe2
  GSocketAddress * (* next_finish) (GSocketAddressEnumerator  *enumerator,
3fbcbe2
				    GAsyncResult              *result,
3fbcbe2
				    GError                   **error);
3fbcbe2
};
3fbcbe2
3fbcbe2
GType           g_socket_address_enumerator_get_type        (void) G_GNUC_CONST;
3fbcbe2
3fbcbe2
GSocketAddress *g_socket_address_enumerator_next        (GSocketAddressEnumerator  *enumerator,
3fbcbe2
							 GCancellable              *cancellable,
3fbcbe2
							 GError                   **error);
3fbcbe2
3fbcbe2
void            g_socket_address_enumerator_next_async  (GSocketAddressEnumerator  *enumerator,
3fbcbe2
							 GCancellable              *cancellable,
3fbcbe2
							 GAsyncReadyCallback        callback,
3fbcbe2
							 gpointer                   user_data);
3fbcbe2
GSocketAddress *g_socket_address_enumerator_next_finish (GSocketAddressEnumerator  *enumerator,
3fbcbe2
							 GAsyncResult              *result,
3fbcbe2
							 GError                   **error);
3fbcbe2
3fbcbe2
G_END_DECLS
3fbcbe2
3fbcbe2
3fbcbe2
#endif /* __G_SOCKET_ADDRESS_ENUMERATOR_H__ */