int (*send_command_stream)(void *dev_ctx, const struct klgd_command_stream *stream);
};
-static void klgd_free_stream(struct klgd_command_stream *s);
static void klgd_schedule_update(struct klgd_main_private *priv);
struct klgd_command * klgd_alloc_cmd(const size_t length)
EXPORT_SYMBOL_GPL(klgd_append_cmd);
-static bool klgd_append_stream(struct klgd_command_stream *target, const struct klgd_command_stream *source)
+bool klgd_append_stream(struct klgd_command_stream *target, const struct klgd_command_stream *source)
{
const struct klgd_command **temp;
size_t idx;
return true;
}
+EXPORT_SYMBOL_GPL(klgd_append_stream);
/**
* Called with plugins_lock held
}
}
-static void klgd_free_stream(struct klgd_command_stream *s)
+void klgd_free_stream(struct klgd_command_stream *s)
{
size_t idx;
for (idx = 0; idx < s->count; idx++)
klgd_free_command(s->commands[idx]);
}
+EXPORT_SYMBOL_GPL(klgd_free_stream);
void klgd_deinit(struct klgd_main *ctx)
{
struct klgd_command * klgd_alloc_cmd(const size_t length);
struct klgd_command_stream * klgd_alloc_stream(void);
bool klgd_append_cmd(struct klgd_command_stream *target, const struct klgd_command *cmd);
+bool klgd_append_stream(struct klgd_command_stream *target, const struct klgd_command_stream *source);
void klgd_deinit(struct klgd_main *ctx);
+void klgd_free_stream(struct klgd_command_stream *s);
int klgd_init(struct klgd_main *ctx, void *dev_ctx, int (*callback)(void *, const struct klgd_command_stream *), const unsigned long plugin_count);
void klgd_lock_plugins(struct mutex *lock);
struct klgd_command * klgd_make_cmd(const char * const bytes);