summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3454b53)
raw | patch | inline | side by side (parent: 3454b53)
author | octo <octo> | |
Tue, 13 Dec 2005 21:53:55 +0000 (21:53 +0000) | ||
committer | octo <octo> | |
Tue, 13 Dec 2005 21:53:55 +0000 (21:53 +0000) |
src/plugin.c | patch | blob | history | |
src/plugin.h | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index a249cf7688b5f7b8c375cf0e34118e6642724b2a..9bc02abec50fff8f1ceb9a5437e4eaff9f7951da 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
* Returns true if the plugin is loaded (i.e. `exists') and false otherwise.
* This is used in `configfile.c' to skip sections that are not needed..
*/
-bool plugin_exists (char *type)
+int plugin_exists (char *type)
{
if (plugin_search (type) == NULL)
- return (false);
+ return (0);
else
- return (true);
+ return (1);
}
/*
diff --git a/src/plugin.h b/src/plugin.h
index e14376e599eca2d1609a89f324068853615513b3..8dd56ae31a1f6202fd6a082641454e04e32801e6 100644 (file)
--- a/src/plugin.h
+++ b/src/plugin.h
void plugin_init_all (void);
void plugin_read_all (void);
-bool plugin_exists (char *type);
+int plugin_exists (char *type);
void plugin_register (char *type,
void (*init) (void),
void (*read) (void),