Define a standard header for plug-ins

This commit is contained in:
Pierre Pronchery 2016-06-14 23:56:10 +02:00
parent 640fb145d8
commit 11e298829b

View File

@ -18,12 +18,21 @@
#ifndef LIBSYSTEM_SYSTEM_PLUGIN_H
# define LIBSYSTEM_SYSTEM_PLUGIN_H
# include "license.h"
# include "string.h"
/* Plugin */
typedef void Plugin;
typedef struct _PluginHeader
{
char const * name;
char const * icon;
char const * description;
LicenseFlags license;
} PluginHeader;
/* functions */
Plugin * plugin_new(String const * libdir, String const * package,