projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1596 from rubenk/fix-a-few-more-prototypes
[collectd.git]
/
src
/
plugin.h
diff --git
a/src/plugin.h
b/src/plugin.h
index
635ff30
..
d54db4b
100644
(file)
--- a/
src/plugin.h
+++ b/
src/plugin.h
@@
-223,7
+223,8
@@
void plugin_set_dir (const char *dir);
* and a value below zero if an error occurs.
*
* NOTES
* and a value below zero if an error occurs.
*
* NOTES
- * No attempt is made to re-load an already loaded module.
+ * Re-loading an already loaded module is detected and zero is returned in
+ * this case.
*/
int plugin_load (const char *name, uint32_t flags);
*/
int plugin_load (const char *name, uint32_t flags);
@@
-398,4
+399,10
@@
cdtime_t plugin_get_interval (void);
int plugin_thread_create (pthread_t *thread, const pthread_attr_t *attr,
void *(*start_routine) (void *), void *arg);
int plugin_thread_create (pthread_t *thread, const pthread_attr_t *attr,
void *(*start_routine) (void *), void *arg);
+/*
+ * Plugins need to implement this
+ */
+
+void module_register (void);
+
#endif /* PLUGIN_H */
#endif /* PLUGIN_H */