summaryrefslogtreecommitdiff
path: root/libsoup/soup-socket.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-11-11 22:15:29 +0000
committerDan Winship <danw@src.gnome.org>2002-11-11 22:15:29 +0000
commite3172515fcfb95e994cf4eadadeb6fd62b5d221f (patch)
tree0f9ff7b4ac825e607cfa0f3ec100a36094500e0d /libsoup/soup-socket.h
parentd4629510fb547f3ed2cce829ea1ec0c73bc5647c (diff)
downloadlibsoup-e3172515fcfb95e994cf4eadadeb6fd62b5d221f.tar.gz
Move the SoupAddress code from soup-socket.c and soup-socket-unix.c to
* libsoup/soup-address.c: Move the SoupAddress code from soup-socket.c and soup-socket-unix.c to here. * libsoup/soup-socket.c: Move the remaining code from soup-socket-unix.c here. * libsoup/soup-socket-unix.c: Gone * tests/get.c: really really trivial test program * configure.in (AC_OUTPUT): * Makefile.am (SUBDIRS): add tests/
Diffstat (limited to 'libsoup/soup-socket.h')
-rw-r--r--libsoup/soup-socket.h70
1 files changed, 1 insertions, 69 deletions
diff --git a/libsoup/soup-socket.h b/libsoup/soup-socket.h
index e9d942c5..da4bb827 100644
--- a/libsoup/soup-socket.h
+++ b/libsoup/soup-socket.h
@@ -15,75 +15,7 @@
#define SOUP_SOCKET_H 1
#include <glib.h>
-
-typedef struct _SoupAddress SoupAddress;
-
-typedef gpointer SoupAddressNewId;
-
-typedef enum {
- SOUP_ADDRESS_STATUS_OK,
- SOUP_ADDRESS_STATUS_ERROR
-} SoupAddressStatus;
-
-typedef void (*SoupAddressNewFn) (SoupAddress *inetaddr,
- SoupAddressStatus status,
- gpointer user_data);
-
-SoupAddressNewId soup_address_new (const gchar* name,
- const gint port,
- SoupAddressNewFn func,
- gpointer data);
-
-void soup_address_new_cancel (SoupAddressNewId id);
-
-SoupAddress *soup_address_new_sync (const gchar *name,
- const gint port);
-
-SoupAddress *soup_address_lookup_in_cache (const gchar *name,
- const gint port);
-
-void soup_address_ref (SoupAddress* ia);
-
-void soup_address_unref (SoupAddress* ia);
-
-SoupAddress * soup_address_copy (SoupAddress* ia);
-
-
-typedef gpointer SoupAddressGetNameId;
-
-typedef void (*SoupAddressGetNameFn) (SoupAddress *inetaddr,
- SoupAddressStatus status,
- const gchar *name,
- gpointer user_data);
-
-SoupAddressGetNameId soup_address_get_name (SoupAddress* ia,
- SoupAddressGetNameFn func,
- gpointer data);
-
-void soup_address_get_name_cancel (SoupAddressGetNameId id);
-
-const gchar *soup_address_get_name_sync (SoupAddress *addr);
-
-gchar* soup_address_get_canonical_name (SoupAddress* ia);
-
-gint soup_address_get_port (const SoupAddress* ia);
-
-const struct sockaddr *
- soup_address_get_sockaddr (SoupAddress *ia,
- guint *addrlen);
-
-guint soup_address_hash (const gpointer p);
-
-gint soup_address_equal (const gpointer p1,
- const gpointer p2);
-
-gint soup_address_noport_equal (const gpointer p1,
- const gpointer p2);
-
-gchar* soup_address_gethostname (void);
-
-SoupAddress* soup_address_gethostaddr (void);
-
+#include <libsoup/soup-address.h>
typedef struct _SoupSocket SoupSocket;