summaryrefslogtreecommitdiff
path: root/include/apr_network_io.h
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>1999-10-04 16:37:48 +0000
committerRyan Bloom <rbb@apache.org>1999-10-04 16:37:48 +0000
commit8a0633b4c9f2e1c8897855027cee55e0b12bf833 (patch)
treecc3bddffac57af165a495dc1e60091d9635ba19e /include/apr_network_io.h
parentc8b99c137ce0c20a37df392d9ee466877a5eb28a (diff)
downloadapr-8a0633b4c9f2e1c8897855027cee55e0b12bf833.tar.gz
First patch to re-order function parameters. This one gets the low hanging
fruit, and moves most of the result parameters to the first argument. Future patches in this series will move the rest of the result parameters to the beginning of the list, and will move the context's to the end of the list git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59259 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_network_io.h')
-rw-r--r--include/apr_network_io.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/apr_network_io.h b/include/apr_network_io.h
index 06da35e88..4775b800d 100644
--- a/include/apr_network_io.h
+++ b/include/apr_network_io.h
@@ -104,16 +104,16 @@ typedef struct pollfd_t ap_pollfd_t;
/* function definitions */
-ap_status_t ap_create_tcp_socket(ap_context_t *, ap_socket_t **);
+ap_status_t ap_create_tcp_socket(ap_socket_t **, ap_context_t *);
ap_status_t ap_shutdown(ap_socket_t *, ap_shutdown_how_e);
ap_status_t ap_close_socket(ap_socket_t *);
ap_status_t ap_bind(ap_socket_t *);
ap_status_t ap_listen(ap_socket_t *, ap_int32_t);
-ap_status_t ap_accept(const ap_socket_t *, ap_socket_t **);
+ap_status_t ap_accept(ap_socket_t **, const ap_socket_t *);
ap_status_t ap_connect(ap_socket_t *, char *);
-ap_status_t ap_get_remote_hostname(ap_socket_t *, char **);
+ap_status_t ap_get_remote_hostname(char **, ap_socket_t *);
ap_status_t ap_gethostname(ap_context_t *, char *, int);
ap_status_t ap_get_socketdata(ap_socket_t *, char *, void *);
ap_status_t ap_set_socketdata(ap_socket_t *, void *, char *,
@@ -128,7 +128,7 @@ ap_status_t ap_setipaddr(ap_socket_t *, const char *);
ap_status_t ap_getport(ap_socket_t *, ap_uint32_t *);
ap_status_t ap_getipaddr(char *buf, ap_ssize_t len, const ap_socket_t *sock);
-ap_status_t ap_setup_poll(ap_context_t *, ap_int32_t, ap_pollfd_t **);
+ap_status_t ap_setup_poll(ap_pollfd_t **, ap_context_t *, ap_int32_t);
ap_status_t ap_poll(ap_pollfd_t *, ap_int32_t *, ap_int32_t);
ap_status_t ap_add_poll_socket(ap_pollfd_t *, ap_socket_t *, ap_int16_t);
ap_status_t ap_remove_poll_socket(ap_pollfd_t *, ap_socket_t *, ap_int16_t);