Skip to content

Commit

Permalink
plugin: remove PluginFailureInfo
Browse files Browse the repository at this point in the history
Signed-off-by: László Várady <laszlo.varady@anno.io>
  • Loading branch information
MrAnno committed May 22, 2024
1 parent c638816 commit b1ddd71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions lib/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ plugin_candidate_new(gint plugin_type, const gchar *name, const gchar *module_na
self->super.type = plugin_type;
self->super.name = g_strdup(name);
self->module_name = g_strdup(module_name);
self->super.failure_info.aux_data = NULL;

return self;
}
Expand Down Expand Up @@ -119,8 +118,6 @@ plugin_construct_from_config(Plugin *self, CfgLexer *lexer, gpointer arg)
{
LogPipe *p = (LogPipe *)instance;
p->plugin_name = g_strdup(self->name);
if (self->failure_info.aux_data != NULL)
p->init = self->failure_info.aux_data;
}

return instance;
Expand Down Expand Up @@ -340,7 +337,6 @@ plugin_find(PluginContext *context, gint plugin_type, const gchar *plugin_name)
p = _find_plugin_in_list(context->plugins, plugin_type, plugin_name);
if (p)
{
p->failure_info.aux_data = candidate->super.failure_info.aux_data;
return p;
}
else
Expand Down
7 changes: 0 additions & 7 deletions lib/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,12 @@

#include "cfg-parser.h"

typedef struct _PluginFailureInfo
{
gconstpointer aux_data;
} PluginFailureInfo;

typedef struct _PluginBase
{
/* NOTE: the start of this structure must match the Plugin struct,
thus it has to be changed together with Plugin */
gint type;
gchar *name;
PluginFailureInfo failure_info;
} PluginBase;

typedef struct _PluginCandidate
Expand All @@ -65,7 +59,6 @@ struct _Plugin

gint type;
const gchar *name;
PluginFailureInfo failure_info;
CfgParser *parser;
gpointer (*construct)(Plugin *self);
void (*free_fn)(Plugin *s);
Expand Down

0 comments on commit b1ddd71

Please sign in to comment.