diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-04 16:15:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-04 16:15:14 +0100 |
commit | d05af027b89abf021c1f010cfa655bf48cb17e4d (patch) | |
tree | 45c57c0d8253d1139bc9f325419cdd61f495a5fb /src/libmime/archives.h | |
parent | 759fa05d26aeb86fa9005ce39d222c65c45ef787 (diff) | |
download | rspamd-d05af027b89abf021c1f010cfa655bf48cb17e4d.tar.gz rspamd-d05af027b89abf021c1f010cfa655bf48cb17e4d.zip |
[Feature] Support archive files list extraction
Diffstat (limited to 'src/libmime/archives.h')
-rw-r--r-- | src/libmime/archives.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/libmime/archives.h b/src/libmime/archives.h new file mode 100644 index 000000000..917a37a70 --- /dev/null +++ b/src/libmime/archives.h @@ -0,0 +1,41 @@ +/*- + * Copyright 2016 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 SRC_LIBMIME_ARCHIVES_H_ +#define SRC_LIBMIME_ARCHIVES_H_ + +#include "config.h" + +enum rspamd_archive_type { + RSPAMD_ARCHIVE_ZIP, +}; + + +struct rspamd_archive { + enum rspamd_archive_type type; + GPtrArray *files; /* Array of GStrings */ +}; + +/** + * Process archives from a worker task + */ +void rspamd_archives_process (struct rspamd_task *task); + +/** + * Get textual representation of an archive's type + */ +const gchar * rspamd_archive_type_str (enum rspamd_archive_type type); + +#endif /* SRC_LIBMIME_ARCHIVES_H_ */ |