From b1e41f328ea871696dae7024a7a1aa6e173f3b26 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 6 Sep 2009 04:32:03 -0400 Subject: it's prollu not worthy of a commit, but I'm going to `hit the hay'. --- wrapper/plugin.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'wrapper/plugin.h') 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; -- cgit v1.2.3-54-g00ecf