cmdt.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * cmdt.h
  3. * stuff for builtin commands
  4. *
  5. * $Id: cmdt.h,v 1.4 2000/01/08 21:23:13 per Exp $
  6. */
  7. /*
  8. * Copyright (C) 1997 Robey Pointer
  9. * Copyright (C) 1999, 2000 Eggheads
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License
  13. * as published by the Free Software Foundation; either version 2
  14. * of the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  24. */
  25. #ifndef _EGG_CMDT_H
  26. #define _EGG_CMDT_H
  27. #define CMD_LEAVE (Function)(-1)
  28. typedef struct {
  29. char *name;
  30. char *flags;
  31. Function func;
  32. char *funcname;
  33. } cmd_t;
  34. typedef struct {
  35. char *name;
  36. Function func;
  37. } botcmd_t;
  38. #endif /* _EGG_CMDT_H */