From 6dc7b4770e179d4b52b43ca506016b37ef0efb15 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan.bosch@open-xchange.com>
Date: Tue, 9 Jun 2020 11:51:38 +0200
Subject: [PATCH] lib-sieve-tool: Reformat sieve-tool.h.

---
 src/lib-sieve-tool/sieve-tool.h | 69 ++++++++++++++++-----------------
 1 file changed, 34 insertions(+), 35 deletions(-)

diff --git a/src/lib-sieve-tool/sieve-tool.h b/src/lib-sieve-tool/sieve-tool.h
index 1464e7473..b253e34ec 100644
--- a/src/lib-sieve-tool/sieve-tool.h
+++ b/src/lib-sieve-tool/sieve-tool.h
@@ -7,8 +7,8 @@
  * Types
  */
 
-typedef const char *(*sieve_tool_setting_callback_t)
-	(void *context, const char *identifier);
+typedef const char *
+(*sieve_tool_setting_callback_t)(void *context, const char *identifier);
 
 /*
  * Global variables
@@ -20,14 +20,15 @@ extern struct sieve_tool *sieve_tool;
  * Initialization
  */
 
-struct sieve_tool *sieve_tool_init
-	(const char *name, int *argc, char **argv[], const char *getopt_str,
-		bool no_config);
+struct sieve_tool *
+sieve_tool_init(const char *name, int *argc, char **argv[],
+		const char *getopt_str, bool no_config);
 
 int sieve_tool_getopt(struct sieve_tool *tool);
 
-struct sieve_instance *sieve_tool_init_finish
-	(struct sieve_tool *tool, bool init_mailstore, bool preserve_root);
+struct sieve_instance *
+sieve_tool_init_finish(struct sieve_tool *tool, bool init_mailstore,
+		       bool preserve_root);
 
 void sieve_tool_deinit(struct sieve_tool **_tool);
 
@@ -35,43 +36,40 @@ void sieve_tool_deinit(struct sieve_tool **_tool);
  * Mail environment
  */
 
-void sieve_tool_init_mail_user
-	(struct sieve_tool *tool, const char *mail_location);
+void sieve_tool_init_mail_user(struct sieve_tool *tool,
+			       const char *mail_location);
 
-struct mail *sieve_tool_open_file_as_mail
-	(struct sieve_tool *tool, const char *path);
-struct mail *sieve_tool_open_data_as_mail
-	(struct sieve_tool *tool, string_t *mail_data);
+struct mail *
+sieve_tool_open_file_as_mail(struct sieve_tool *tool, const char *path);
+struct mail *
+sieve_tool_open_data_as_mail(struct sieve_tool *tool, string_t *mail_data);
 
 /*
  * Accessors
  */
 
-const char *sieve_tool_get_username
-	(struct sieve_tool *tool);
-const char *sieve_tool_get_homedir
-(struct sieve_tool *tool);
-struct mail_user *sieve_tool_get_mail_user
-	(struct sieve_tool *tool);
+const char *sieve_tool_get_username(struct sieve_tool *tool);
+const char *sieve_tool_get_homedir(struct sieve_tool *tool);
+struct mail_user *sieve_tool_get_mail_user(struct sieve_tool *tool);
 
 /*
  * Configuration
  */
 
 void sieve_tool_set_homedir(struct sieve_tool *tool, const char *homedir);
-void sieve_tool_set_setting_callback
-	(struct sieve_tool *tool, sieve_tool_setting_callback_t callback,
-		void *context);
+void sieve_tool_set_setting_callback(struct sieve_tool *tool,
+				     sieve_tool_setting_callback_t callback,
+				     void *context);
 
 /*
  * Commonly needed functionality
  */
 
-void sieve_tool_get_envelope_data
-(struct sieve_message_data *msgdata, struct mail *mail,
-	const struct smtp_address *sender,
-	const struct smtp_address *rcpt_orig,
-	const struct smtp_address *rcpt_final);
+void sieve_tool_get_envelope_data(struct sieve_message_data *msgdata,
+				  struct mail *mail,
+				  const struct smtp_address *sender,
+				  const struct smtp_address *rcpt_orig,
+				  const struct smtp_address *rcpt_final);
 
 /*
  * File I/O
@@ -83,18 +81,19 @@ struct ostream *sieve_tool_open_output_stream(const char *filename);
  * Sieve script handling
  */
 
-struct sieve_binary *sieve_tool_script_compile
-	(struct sieve_instance *svinst, const char *filename, const char *name);
-struct sieve_binary *sieve_tool_script_open
-	(struct sieve_instance *svinst, const char *filename);
-void sieve_tool_dump_binary_to
-	(struct sieve_binary *sbin, const char *filename, bool hexdump);
+struct sieve_binary *
+sieve_tool_script_compile(struct sieve_instance *svinst,
+			  const char *filename, const char *name);
+struct sieve_binary *
+sieve_tool_script_open(struct sieve_instance *svinst, const char *filename);
+void sieve_tool_dump_binary_to(struct sieve_binary *sbin,
+			       const char *filename, bool hexdump);
 
 /*
  * Command line option parsing
  */
 
-void sieve_tool_parse_trace_option
-	(struct sieve_trace_config *tr_config, const char *tr_option);
+void sieve_tool_parse_trace_option(struct sieve_trace_config *tr_config,
+				   const char *tr_option);
 
 #endif
-- 
GitLab