httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soc-r...@apache.org
Subject svn commit: r366241 - /httpd/mod_smtpd/trunk/src/smtp_core.c
Date Thu, 05 Jan 2006 18:37:57 GMT
Author: soc-rian
Date: Thu Jan  5 10:37:55 2006
New Revision: 366241

URL: http://svn.apache.org/viewcvs?rev=366241&view=rev
Log:
Indents


Modified:
    httpd/mod_smtpd/trunk/src/smtp_core.c

Modified: httpd/mod_smtpd/trunk/src/smtp_core.c
URL: http://svn.apache.org/viewcvs/httpd/mod_smtpd/trunk/src/smtp_core.c?rev=366241&r1=366240&r2=366241&view=diff
==============================================================================
--- httpd/mod_smtpd/trunk/src/smtp_core.c (original)
+++ httpd/mod_smtpd/trunk/src/smtp_core.c Thu Jan  5 10:37:55 2006
@@ -44,104 +44,104 @@
 
 
 APR_HOOK_STRUCT(
-    APR_HOOK_LINK(unrecognized_command)
-    APR_HOOK_LINK(connect)
-    APR_HOOK_LINK(reset_transaction)
-    APR_HOOK_LINK(helo)
-    APR_HOOK_LINK(ehlo)
-    APR_HOOK_LINK(mail)
-    APR_HOOK_LINK(rcpt)
-    APR_HOOK_LINK(vrfy)
-    APR_HOOK_LINK(quit)
-    APR_HOOK_LINK(data)
-    APR_HOOK_LINK(data_post)
-    APR_HOOK_LINK(queue)
-    APR_HOOK_LINK(headers_parsed)
-    )
-
-/* Implement 'smtpd_run_unrecognized_command'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode,
-				    unrecognized_command,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in,
-				     char *command, char *data),
-				    (scr, in, command, data),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_connect'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, connect,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in),
-				    (scr, in),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_reset_transaction'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode,
-				    reset_transaction,
-				    (smtpd_conn_rec *scr),
-				    (scr),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_helo'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, helo,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in, char *str),
-				    (scr, in, str),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_ehlo'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, ehlo,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in, char *str),
-				    (scr, in, str),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_mail'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, mail,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in, char *str),
-				    (scr, in, str),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_rcpt'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, rcpt,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in, char *str),
-				    (scr, in, str),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_vrfy'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, vrfy,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in, char *str),
-				    (scr, in, str),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_quit'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, quit,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in),
-				    (scr, in),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_data'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, data,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in),
-				    (scr, in),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_data_post'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode,
-				    data_post,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in),
-				    (scr, in),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_queue'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, queue,
-				    (smtpd_conn_rec *scr,
-				     smtpd_return_data *in),
-				    (scr, in),
-				    SMTPD_OK, SMTPD_DECLINED);
-/* Implement 'smtpd_run_headers_parsed'. */
-APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode,
-				    headers_parsed,
-				    (smtpd_conn_rec *scr),
-				    (scr),
-				    SMTPD_OK, SMTPD_DECLINED);
+                APR_HOOK_LINK(unrecognized_command)
+                APR_HOOK_LINK(connect)
+                APR_HOOK_LINK(reset_transaction)
+                APR_HOOK_LINK(helo)
+                APR_HOOK_LINK(ehlo)
+                APR_HOOK_LINK(mail)
+                APR_HOOK_LINK(rcpt)
+                APR_HOOK_LINK(vrfy)
+                APR_HOOK_LINK(quit)
+                APR_HOOK_LINK(data)
+                APR_HOOK_LINK(data_post)
+                APR_HOOK_LINK(queue)
+                APR_HOOK_LINK(headers_parsed)
+                )
+
+     /* Implement 'smtpd_run_unrecognized_command'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode,
+                                         unrecognized_command,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in,
+                                          char *command, char *data),
+                                         (scr, in, command, data),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_connect'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, connect,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in),
+                                         (scr, in),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_reset_transaction'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode,
+                                         reset_transaction,
+                                         (smtpd_conn_rec *scr),
+                                         (scr),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_helo'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, helo,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in, char *str),
+                                         (scr, in, str),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_ehlo'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, ehlo,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in, char *str),
+                                         (scr, in, str),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_mail'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, mail,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in, char *str),
+                                         (scr, in, str),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_rcpt'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, rcpt,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in, char *str),
+                                         (scr, in, str),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_vrfy'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, vrfy,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in, char *str),
+                                         (scr, in, str),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_quit'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, quit,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in),
+                                         (scr, in),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_data'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, data,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in),
+                                         (scr, in),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_data_post'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode,
+                                         data_post,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in),
+                                         (scr, in),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_queue'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode, queue,
+                                         (smtpd_conn_rec *scr,
+                                          smtpd_return_data *in),
+                                         (scr, in),
+                                         SMTPD_OK, SMTPD_DECLINED);
+     /* Implement 'smtpd_run_headers_parsed'. */
+     APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(smtpd, SMTPD, smtpd_retcode,
+                                         headers_parsed,
+                                         (smtpd_conn_rec *scr),
+                                         (scr),
+                                         SMTPD_OK, SMTPD_DECLINED);
 
-void smtpd_clear_trans_rec(smtpd_conn_rec *scr)
+     void smtpd_clear_trans_rec(smtpd_conn_rec *scr)
 {
     smtpd_trans_rec *str = scr->transaction;
     apr_pool_clear(str->p);
@@ -195,7 +195,7 @@
 {
     smtpd_conn_rec *scr;
     smtpd_svr_config_rec *pConfig =
-      ap_get_module_config(c->base_server->module_config, &smtpd_module);
+        ap_get_module_config(c->base_server->module_config, &smtpd_module);
     
     if (!pConfig->bEnabled) {
         return DECLINED;
@@ -228,7 +228,7 @@
                                        int arg)
 {
     smtpd_svr_config_rec *pConfig =
-      ap_get_module_config(cmd->server->module_config, &smtpd_module);
+        ap_get_module_config(cmd->server->module_config, &smtpd_module);
     pConfig->bEnabled = arg ? 1 : 0;
 
     return NULL;
@@ -239,7 +239,7 @@
                                  const char *arg)
 {
     smtpd_svr_config_rec *pConfig =
-      ap_get_module_config(cmd->server->module_config, &smtpd_module);
+        ap_get_module_config(cmd->server->module_config, &smtpd_module);
     
     pConfig->sId = arg;
     
@@ -251,7 +251,7 @@
                                      const char *arg)
 {
     smtpd_svr_config_rec *pConfig =
-      ap_get_module_config(cmd->server->module_config, &smtpd_module);
+        ap_get_module_config(cmd->server->module_config, &smtpd_module);
     
     pConfig->max_data = atoi(arg);
     



Mime
View raw message