diff options
author | Dan Winship <danw@src.gnome.org> | 2003-08-19 14:47:15 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-08-19 14:47:15 +0000 |
commit | ef1c13662efa0f9cc87eeae8ca35b86c5512cc47 (patch) | |
tree | 2ed0efb3bb7b462624fe440ec50d61251528d6f8 /tests | |
parent | 80b7b8f1d619d626fbb9a3fb2b5beda8d3cb1890 (diff) | |
download | libsoup-ef1c13662efa0f9cc87eeae8ca35b86c5512cc47.tar.gz |
Make this a GObject. Remove SoupServerMessage code (to
* libsoup/soup-server.c: Make this a GObject. Remove
SoupServerMessage code (to soup-server-message.c). Remove CGI
server code (for now?)
(soup_server_add_handler, soup_server_remove_handler): Rename
(from register/unregister) to make it clearer what they do.
* libsoup/soup-server-message.c: Moved out of soup-server.c
* libsoup/soup-private.h: Remove SoupServer def
* libsoup/Makefile.am (libsoupinclude_HEADERS,
libsoup_2_2_la_SOURCES): add soup-server-message.[ch]
* tests/simple-httpd.c:
* tests/simple-proxy.c: Update for SoupServer changes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple-httpd.c | 6 | ||||
-rw-r--r-- | tests/simple-proxy.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/simple-httpd.c b/tests/simple-httpd.c index 027ff821..1e22a23c 100644 --- a/tests/simple-httpd.c +++ b/tests/simple-httpd.c @@ -145,14 +145,16 @@ main (int argc, char **argv) fprintf (stderr, "Unable to bind to server port %d\n", port); exit (1); } - soup_server_register (server, NULL, NULL, server_callback, NULL, NULL); + soup_server_add_handler (server, NULL, NULL, + server_callback, NULL, NULL); ssl_server = soup_server_new (SOUP_PROTOCOL_HTTPS, ssl_port); if (!ssl_server) { fprintf (stderr, "Unable to bind to SSL server port %d\n", ssl_port); exit (1); } - soup_server_register (ssl_server, NULL, NULL, server_callback, NULL, NULL); + soup_server_add_handler (ssl_server, NULL, NULL, + server_callback, NULL, NULL); printf ("\nStarting Server on port %d\n", soup_server_get_port (server)); diff --git a/tests/simple-proxy.c b/tests/simple-proxy.c index 255c6a63..275d1d74 100644 --- a/tests/simple-proxy.c +++ b/tests/simple-proxy.c @@ -73,7 +73,8 @@ main (int argc, char **argv) fprintf (stderr, "Unable to bind to server port %d\n", port); exit (1); } - soup_server_register (server, NULL, NULL, server_callback, NULL, NULL); + soup_server_add_handler (server, NULL, NULL, + server_callback, NULL, NULL); printf ("\nStarting proxy on port %d\n", soup_server_get_port (server)); |