diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-18 09:49:30 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-18 11:18:03 +0300 |
commit | 1c116801200b0cafac4f16f7f9ccecf69a23c1aa (patch) | |
tree | 70cc66b2bd8be41598ca9d9e4bd771b57dd6e797 /src/microhttpd/daemon.c | |
parent | 4ff1024763a306200de3fd1e5581377aca9047e1 (diff) | |
download | libmicrohttpd-1c116801200b0cafac4f16f7f9ccecf69a23c1aa.tar.gz libmicrohttpd-1c116801200b0cafac4f16f7f9ccecf69a23c1aa.zip |
Added _MHD_EXTERN to the all public functions definitions
Previously it was inconsistent, some function definitions used
_MHD_EXTERN, while other definitions was used without _MHD_EXTERN.
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 1cca1b30..fa4715e9 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -691,7 +691,7 @@ MHD_TLS_init (struct MHD_Daemon *daemon) | |||
691 | * fit fd_set. | 691 | * fit fd_set. |
692 | * @ingroup event | 692 | * @ingroup event |
693 | */ | 693 | */ |
694 | enum MHD_Result | 694 | _MHD_EXTERN enum MHD_Result |
695 | MHD_get_fdset (struct MHD_Daemon *daemon, | 695 | MHD_get_fdset (struct MHD_Daemon *daemon, |
696 | fd_set *read_fd_set, | 696 | fd_set *read_fd_set, |
697 | fd_set *write_fd_set, | 697 | fd_set *write_fd_set, |
@@ -1099,7 +1099,7 @@ internal_get_fdset2 (struct MHD_Daemon *daemon, | |||
1099 | * fit fd_set. | 1099 | * fit fd_set. |
1100 | * @ingroup event | 1100 | * @ingroup event |
1101 | */ | 1101 | */ |
1102 | enum MHD_Result | 1102 | _MHD_EXTERN enum MHD_Result |
1103 | MHD_get_fdset2 (struct MHD_Daemon *daemon, | 1103 | MHD_get_fdset2 (struct MHD_Daemon *daemon, |
1104 | fd_set *read_fd_set, | 1104 | fd_set *read_fd_set, |
1105 | fd_set *write_fd_set, | 1105 | fd_set *write_fd_set, |
@@ -3171,7 +3171,7 @@ internal_suspend_connection_ (struct MHD_Connection *connection) | |||
3171 | * | 3171 | * |
3172 | * @sa #MHD_AccessHandlerCallback | 3172 | * @sa #MHD_AccessHandlerCallback |
3173 | */ | 3173 | */ |
3174 | void | 3174 | _MHD_EXTERN void |
3175 | MHD_suspend_connection (struct MHD_Connection *connection) | 3175 | MHD_suspend_connection (struct MHD_Connection *connection) |
3176 | { | 3176 | { |
3177 | struct MHD_Daemon *const daemon = connection->daemon; | 3177 | struct MHD_Daemon *const daemon = connection->daemon; |
@@ -3214,7 +3214,7 @@ MHD_suspend_connection (struct MHD_Connection *connection) | |||
3214 | * | 3214 | * |
3215 | * @param connection the connection to resume | 3215 | * @param connection the connection to resume |
3216 | */ | 3216 | */ |
3217 | void | 3217 | _MHD_EXTERN void |
3218 | MHD_resume_connection (struct MHD_Connection *connection) | 3218 | MHD_resume_connection (struct MHD_Connection *connection) |
3219 | { | 3219 | { |
3220 | struct MHD_Daemon *daemon = connection->daemon; | 3220 | struct MHD_Daemon *daemon = connection->daemon; |
@@ -3411,7 +3411,7 @@ resume_suspended_connections (struct MHD_Daemon *daemon) | |||
3411 | * set to indicate further details about the error. | 3411 | * set to indicate further details about the error. |
3412 | * @ingroup specialized | 3412 | * @ingroup specialized |
3413 | */ | 3413 | */ |
3414 | enum MHD_Result | 3414 | _MHD_EXTERN enum MHD_Result |
3415 | MHD_add_connection (struct MHD_Daemon *daemon, | 3415 | MHD_add_connection (struct MHD_Daemon *daemon, |
3416 | MHD_socket client_socket, | 3416 | MHD_socket client_socket, |
3417 | const struct sockaddr *addr, | 3417 | const struct sockaddr *addr, |
@@ -3893,7 +3893,7 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon) | |||
3893 | * not used and no data processing is pending. | 3893 | * not used and no data processing is pending. |
3894 | * @ingroup event | 3894 | * @ingroup event |
3895 | */ | 3895 | */ |
3896 | enum MHD_Result | 3896 | _MHD_EXTERN enum MHD_Result |
3897 | MHD_get_timeout (struct MHD_Daemon *daemon, | 3897 | MHD_get_timeout (struct MHD_Daemon *daemon, |
3898 | MHD_UNSIGNED_LONG_LONG *timeout) | 3898 | MHD_UNSIGNED_LONG_LONG *timeout) |
3899 | { | 3899 | { |
@@ -4125,7 +4125,7 @@ internal_run_from_select (struct MHD_Daemon *daemon, | |||
4125 | * @return #MHD_NO on serious errors, #MHD_YES on success | 4125 | * @return #MHD_NO on serious errors, #MHD_YES on success |
4126 | * @ingroup event | 4126 | * @ingroup event |
4127 | */ | 4127 | */ |
4128 | enum MHD_Result | 4128 | _MHD_EXTERN enum MHD_Result |
4129 | MHD_run_from_select (struct MHD_Daemon *daemon, | 4129 | MHD_run_from_select (struct MHD_Daemon *daemon, |
4130 | const fd_set *read_fd_set, | 4130 | const fd_set *read_fd_set, |
4131 | const fd_set *write_fd_set, | 4131 | const fd_set *write_fd_set, |
@@ -5205,7 +5205,7 @@ MHD_epoll (struct MHD_Daemon *daemon, | |||
5205 | * options for this call. | 5205 | * options for this call. |
5206 | * @ingroup event | 5206 | * @ingroup event |
5207 | */ | 5207 | */ |
5208 | enum MHD_Result | 5208 | _MHD_EXTERN enum MHD_Result |
5209 | MHD_run (struct MHD_Daemon *daemon) | 5209 | MHD_run (struct MHD_Daemon *daemon) |
5210 | { | 5210 | { |
5211 | if ( (daemon->shutdown) || | 5211 | if ( (daemon->shutdown) || |
@@ -5449,7 +5449,7 @@ unescape_wrapper (void *cls, | |||
5449 | * @return NULL on error, handle to daemon on success | 5449 | * @return NULL on error, handle to daemon on success |
5450 | * @ingroup event | 5450 | * @ingroup event |
5451 | */ | 5451 | */ |
5452 | struct MHD_Daemon * | 5452 | _MHD_EXTERN struct MHD_Daemon * |
5453 | MHD_start_daemon (unsigned int flags, | 5453 | MHD_start_daemon (unsigned int flags, |
5454 | uint16_t port, | 5454 | uint16_t port, |
5455 | MHD_AcceptPolicyCallback apc, | 5455 | MHD_AcceptPolicyCallback apc, |
@@ -5494,7 +5494,7 @@ MHD_start_daemon (unsigned int flags, | |||
5494 | * the daemon was already not listening anymore | 5494 | * the daemon was already not listening anymore |
5495 | * @ingroup specialized | 5495 | * @ingroup specialized |
5496 | */ | 5496 | */ |
5497 | MHD_socket | 5497 | _MHD_EXTERN MHD_socket |
5498 | MHD_quiesce_daemon (struct MHD_Daemon *daemon) | 5498 | MHD_quiesce_daemon (struct MHD_Daemon *daemon) |
5499 | { | 5499 | { |
5500 | #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) | 5500 | #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) |
@@ -6382,7 +6382,7 @@ setup_epoll_to_listen (struct MHD_Daemon *daemon) | |||
6382 | * @return NULL on error, handle to daemon on success | 6382 | * @return NULL on error, handle to daemon on success |
6383 | * @ingroup event | 6383 | * @ingroup event |
6384 | */ | 6384 | */ |
6385 | struct MHD_Daemon * | 6385 | _MHD_EXTERN struct MHD_Daemon * |
6386 | MHD_start_daemon_va (unsigned int flags, | 6386 | MHD_start_daemon_va (unsigned int flags, |
6387 | uint16_t port, | 6387 | uint16_t port, |
6388 | MHD_AcceptPolicyCallback apc, | 6388 | MHD_AcceptPolicyCallback apc, |
@@ -7651,7 +7651,7 @@ close_all_connections (struct MHD_Daemon *daemon) | |||
7651 | * @param daemon daemon to stop | 7651 | * @param daemon daemon to stop |
7652 | * @ingroup event | 7652 | * @ingroup event |
7653 | */ | 7653 | */ |
7654 | void | 7654 | _MHD_EXTERN void |
7655 | MHD_stop_daemon (struct MHD_Daemon *daemon) | 7655 | MHD_stop_daemon (struct MHD_Daemon *daemon) |
7656 | { | 7656 | { |
7657 | MHD_socket fd; | 7657 | MHD_socket fd; |
@@ -7833,7 +7833,7 @@ MHD_stop_daemon (struct MHD_Daemon *daemon) | |||
7833 | * (or if the @a info_type is unknown) | 7833 | * (or if the @a info_type is unknown) |
7834 | * @ingroup specialized | 7834 | * @ingroup specialized |
7835 | */ | 7835 | */ |
7836 | const union MHD_DaemonInfo * | 7836 | _MHD_EXTERN const union MHD_DaemonInfo * |
7837 | MHD_get_daemon_info (struct MHD_Daemon *daemon, | 7837 | MHD_get_daemon_info (struct MHD_Daemon *daemon, |
7838 | enum MHD_DaemonInfoType info_type, | 7838 | enum MHD_DaemonInfoType info_type, |
7839 | ...) | 7839 | ...) |
@@ -7889,7 +7889,7 @@ MHD_get_daemon_info (struct MHD_Daemon *daemon, | |||
7889 | * @return static version string, e.g. "0.9.9" | 7889 | * @return static version string, e.g. "0.9.9" |
7890 | * @ingroup specialized | 7890 | * @ingroup specialized |
7891 | */ | 7891 | */ |
7892 | const char * | 7892 | _MHD_EXTERN const char * |
7893 | MHD_get_version (void) | 7893 | MHD_get_version (void) |
7894 | { | 7894 | { |
7895 | #ifdef PACKAGE_VERSION | 7895 | #ifdef PACKAGE_VERSION |
@@ -7923,7 +7923,7 @@ MHD_get_version (void) | |||
7923 | * feature is not supported or feature is unknown. | 7923 | * feature is not supported or feature is unknown. |
7924 | * @ingroup specialized | 7924 | * @ingroup specialized |
7925 | */ | 7925 | */ |
7926 | enum MHD_Result | 7926 | _MHD_EXTERN enum MHD_Result |
7927 | MHD_is_feature_supported (enum MHD_FEATURE feature) | 7927 | MHD_is_feature_supported (enum MHD_FEATURE feature) |
7928 | { | 7928 | { |
7929 | switch (feature) | 7929 | switch (feature) |