Code

object: Let create_simple() accept an optional destructor.
[sysdb.git] / src / include / core / plugin.h
index 6a679ce8a17baa5900573ee38cf0deb3e22882cb..5928560931932836a4dda90ebae881f38a6365a0 100644 (file)
@@ -52,7 +52,7 @@ typedef struct sdb_plugin_info sdb_plugin_info_t;
  * missing prototype warnings/errors for the plugin init
  * function */
 #define SDB_PLUGIN_MAGIC \
-       int sdb_module_init(sdb_plugin_info_t *info);
+       int sdb_module_init(sdb_plugin_info_t *info)
 
 typedef struct {
        _Bool do_loop;
@@ -245,6 +245,9 @@ sdb_plugin_configure(const char *name, oconfig_item_t *ci);
 /*
  * sdb_plugin_init_all:
  * Initialize all plugins using their registered "init" function.
+ *
+ * Returns:
+ * The number of failed initializations.
  */
 int
 sdb_plugin_init_all(void);