fsys-wrapper.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* fsys.defs wrapper code.
  2. Copyright (C) 2008 Free Software Foundation, Inc.
  3. Written by FlÃvio Cruz <flaviocruz@gmail.com>
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License as
  6. published by the Free Software Foundation; either version 2, or (at
  7. your option) any later version.
  8. This program is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. #ifndef FSYS_WRAPPER_H
  16. #define FSYS_WRAPPER_H
  17. /* module that enables lisp to change what
  18. * routines will be run on certain input/output
  19. * events. this header is specially made
  20. * to be used with swig
  21. */
  22. /* routines that can be set by the middle level */
  23. typedef enum
  24. {
  25. FSYS_STARTUP,
  26. FSYS_GOAWAY,
  27. FSYS_GETROOT,
  28. FSYS_GETFILE,
  29. FSYS_SYNCFS,
  30. FSYS_SET_OPTIONS,
  31. FSYS_GETPRIV,
  32. FSYS_INIT,
  33. FSYS_FORWARD,
  34. FSYS_GET_OPTIONS,
  35. _NUMBER_OF_ROUTINES
  36. } FsysRoutine;
  37. /* we could make a function for every handler
  38. * but that would get kinda tedious
  39. * just use a generic pointer
  40. * that will be cast when needed
  41. */
  42. void set_fsys_routine (const FsysRoutine what, void *fun);
  43. #endif