projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RPM specfile: update changelog for 5.5
[collectd.git]
/
src
/
utils_ignorelist.h
diff --git
a/src/utils_ignorelist.h
b/src/utils_ignorelist.h
index
30d508b
..
b47b55a
100644
(file)
--- a/
src/utils_ignorelist.h
+++ b/
src/utils_ignorelist.h
@@
-1,5
+1,5
@@
/**
/**
- * collectd - src/
config_
list.h
+ * collectd - src/
utils_ignore
list.h
* Copyright (C) 2006 Lubos Stanek <lubek at users.sourceforge.net>
*
* This program is free software; you can redistribute it and/
* Copyright (C) 2006 Lubos Stanek <lubek at users.sourceforge.net>
*
* This program is free software; you can redistribute it and/
@@
-28,7
+28,7
@@
#ifndef UTILS_IGNORELIST_H
#define UTILS_IGNORELIST_H 1
#ifndef UTILS_IGNORELIST_H
#define UTILS_IGNORELIST_H 1
-#include "co
mmon
.h"
+#include "co
llectd
.h"
#if HAVE_REGEX_H
# include <regex.h>
#if HAVE_REGEX_H
# include <regex.h>
@@
-43,39
+43,28
@@
typedef struct ignorelist_s ignorelist_t;
* create the ignorelist_t with known ignore state
* return pointer to ignorelist_t
*/
* create the ignorelist_t with known ignore state
* return pointer to ignorelist_t
*/
-ignorelist_t *ignorelist_create (int ignore);
-
-/*
- * create ignorelist_t and initialize the ignore state to 0
- * return pointer to ignorelist_t
- */
-ignorelist_t *ignorelist_init (void);
+ignorelist_t *ignorelist_create (int invert);
/*
* free memory used by ignorelist_t
*/
/*
* free memory used by ignorelist_t
*/
-void ignorelist_free (ignorelist_t *
conflist
);
+void ignorelist_free (ignorelist_t *
il
);
/*
* set ignore state of the ignorelist_t
*/
/*
* set ignore state of the ignorelist_t
*/
-void ignorelist_ignore (ignorelist_t *conflist, int ignore);
-/*
- * get number of entries in the ignorelist_t
- * return int number
- */
-int ignorelist_num (ignorelist_t *conflist);
+void ignorelist_set_invert (ignorelist_t *il, int invert);
/*
* append entry to ignorelist_t
/*
* append entry to ignorelist_t
- * return
1 for success
+ * return
s zero on success, non-zero upon failure.
*/
*/
-int ignorelist_add (ignorelist_t *
conflist
, const char *entry);
+int ignorelist_add (ignorelist_t *
il
, const char *entry);
/*
* check list for entry
* return 1 for ignored entry
*/
/*
* check list for entry
* return 1 for ignored entry
*/
-int ignorelist_
ignored (ignorelist_t *conflist
, const char *entry);
+int ignorelist_
match (ignorelist_t *il
, const char *entry);
#endif /* UTILS_IGNORELIST_H */
#endif /* UTILS_IGNORELIST_H */