From 1ba1250cf9a2de1d41e16ed6408efecaa96f39d2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 1 May 2017 11:54:02 +0100 Subject: [PATCH] [Minor] Fix headers style --- src/libserver/cfg_file.h | 49 +++++++++++++++++----------------------- src/rspamd.h | 23 ++++++++++++------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 67a32c608..3963b43d8 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -1,6 +1,17 @@ -/** - * @file cfg_file.h - * Config file parser and config routines API +/*- + * Copyright 2016-2017 Vsevolod Stakhov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef CFG_FILE_H @@ -34,17 +45,6 @@ struct rspamd_external_libs_ctx; struct rspamd_cryptobox_pubkey; struct rspamd_dns_resolver; -enum { VAL_UNDEF=0, VAL_TRUE, VAL_FALSE }; - -/** - * Type of time configuration parameter - */ -enum time_type { - TIME_SECONDS = 0, - TIME_MILLISECONDS, - TIME_MINUTES, - TIME_HOURS -}; /** * Types of rspamd bind lines */ @@ -113,10 +113,6 @@ struct rspamd_symbol { gint nshots; }; - -typedef double (*statfile_normalize_func)(struct rspamd_config *cfg, - long double score, void *params); - /** * Statfile config definition */ @@ -154,15 +150,15 @@ struct rspamd_classifier_config { GList *statfiles; /**< statfiles list */ GHashTable *labels; /**< statfiles with labels */ gchar *metric; /**< metric of this classifier */ - gchar *classifier; /**< classifier interface */ + gchar *classifier; /**< classifier interface */ struct rspamd_tokenizer_config *tokenizer; /**< tokenizer used for classifier */ - const gchar *backend; /**< name of statfile's backend */ + const gchar *backend; /**< name of statfile's backend */ ucl_object_t *opts; /**< other options */ - GList *learn_conditions; /**< list of learn condition callbacks */ - gchar *name; /**< unique name of classifier */ - guint32 min_tokens; /**< minimal number of tokens to process classifier */ - guint32 max_tokens; /**< maximum number of tokens */ - guint min_learns; /**< minimum number of learns for each statfile */ + GList *learn_conditions; /**< list of learn condition callbacks */ + gchar *name; /**< unique name of classifier */ + guint32 min_tokens; /**< minimal number of tokens to process classifier */ + guint32 max_tokens; /**< maximum number of tokens */ + guint min_learns; /**< minimum number of learns for each statfile */ guint flags; }; @@ -679,6 +675,3 @@ gboolean rspamd_config_radix_from_ucl (struct rspamd_config *cfg, __VA_ARGS__) #endif /* ifdef CFG_FILE_H */ -/* - * vi:ts=4 - */ diff --git a/src/rspamd.h b/src/rspamd.h index 8551b988d..3ea6c90b8 100644 --- a/src/rspamd.h +++ b/src/rspamd.h @@ -1,6 +1,17 @@ -/** - * @file main.h - * Definitions for main rspamd structures +/*- + * Copyright 2016-2017 Vsevolod Stakhov + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #ifndef RSPAMD_MAIN_H @@ -325,8 +336,4 @@ enum rspamd_pbkdf_version_id { extern const struct rspamd_controller_pbkdf pbkdf_list[]; -#endif - -/* - * vi:ts=4 - */ +#endif \ No newline at end of file -- 2.39.5