-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathFilter.h
45 lines (36 loc) · 938 Bytes
/
Filter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* CLCL
*
* Filter.h
*
* Copyright (C) 1996-2019 by Ohno Tomoaki. All rights reserved.
* https://www.nakka.com/
*/
#ifndef _INC_FILTER_H
#define _INC_FILTER_H
/* Include Files */
#include "Format.h"
/* Define */
#define FILTER_ACTION_ADD 0
#define FILTER_ACTION_IGNORE 1
#define FILTER_SAVE_NOSAVE 0
#define FILTER_SAVE_SAVE 1
/* Struct */
// Œ`Ž®ƒtƒBƒ‹ƒ^
typedef struct _FILTER_INFO {
TCHAR *format_name;
FORMAT_NAME *fn;
int fn_cnt;
int action; // FILTER_ACTION_
int save; // FILTER_SAVE_
DWORD limit_size;
} FILTER_INFO;
/* Function Prototypes */
int filter_get_index(const TCHAR *format_name, const int name_hash);
BOOL filter_format_check(const TCHAR *format_name);
BOOL filter_size_check(const TCHAR *format_name, const DWORD size);
BOOL filter_list_save_check(DATA_INFO *di);
DATA_INFO *filter_list_copy(DATA_INFO *di, TCHAR *err_str);
#endif
/* End of source */