You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
366 B
16 lines
366 B
#ifndef F2B_MATCHES_H_ |
|
#define F2B_MATCHES_H_ |
|
|
|
typedef struct { |
|
size_t max; |
|
size_t used; |
|
time_t *times; |
|
} f2b_matches_t; |
|
|
|
bool f2b_matches_create (f2b_matches_t *m, size_t max); |
|
void f2b_matches_destroy(f2b_matches_t *m); |
|
|
|
bool f2b_matches_append (f2b_matches_t *m, time_t t); |
|
void f2b_matches_expire (f2b_matches_t *m, time_t t); |
|
|
|
#endif /* F2B_MATCHES_H_ */
|
|
|