Define a standard header for plug-ins
This commit is contained in:
parent
640fb145d8
commit
11e298829b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user