summaryrefslogtreecommitdiff
path: root/wrapper/plugin.h
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-09-06 04:32:03 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:14 -0600
commitb1e41f328ea871696dae7024a7a1aa6e173f3b26 (patch)
tree2a98eaec8e76ff3123bad63bb650036fae1b2eff /wrapper/plugin.h
parentea8a13dfa2a25f52cc245a8992fbff5d1e41106d (diff)
it's prollu not worthy of a commit, but I'm going to `hit the hay'.
Diffstat (limited to 'wrapper/plugin.h')
-rw-r--r--wrapper/plugin.h21
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;