plugins.h

TinyMAZE/src/hdrs/plugins.h · 394 B

From the archive TinyMAZEv2.5a.tar.gz

Download the archive   « Back to the archive contents

#ifndef PLUGINS_H
#define PLUGINS_H

#include "commands.h"

#define PLUGIN_SUPPORT_VERSION 1

typedef struct
{
  void (*startup)();
  void (*shutdown)();
  void (*timed)();
  void (*login)();
  void (*logout)();
  void (*create)();
  void (*destroy)();
} PLUGIN_F;

typedef struct plugin_struct
{
  CS *command;
  PLUGIN_F funcs;
  struct plugin_struct *next;
} PLUGIN;

#endif /* PLUGINS_H */

Site Stats

Snippets: 1791
Codebases: 571