diff options
Diffstat (limited to 'wrapper/plugin.h')
-rw-r--r-- | wrapper/plugin.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/wrapper/plugin.h b/wrapper/plugin.h index 5eff78e..5273866 100644 --- a/wrapper/plugin.h +++ b/wrapper/plugin.h @@ -17,8 +17,10 @@ If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef FILE_plugin.h_SEEN -#define FILE_plugin.h_SEEN +#ifndef FILE_plugin_h_SEEN +#define FILE_plugin_h_SEEN + +#include "rvs.h" struct plugin { @@ -43,6 +45,21 @@ struct plugin_command struct plugin_command *d_next; /* next command w/ same dependancy (linked list) */ }; +struct plugin_command * +mkcommand() +{ + struct plugin_command *command; + command=(struct plugin_command *)xmalloc(sizeof(*command)); + command->name=NULL; + command->plugin=NULL; + command->p_next=NULL; + command->depend=NULL; + command->depends=NULL; + command->child=NULL; + command->d_next=NULL; + return command; +} + struct plugin_tree { struct plugin *plugins; |