You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.3KB

  1. // Avisynth C Interface Version 0.20
  2. // Copyright 2003 Kevin Atkinson
  3. // This program is free software; you can redistribute it and/or modify
  4. // it under the terms of the GNU General Public License as published by
  5. // the Free Software Foundation; either version 2 of the License, or
  6. // (at your option) any later version.
  7. //
  8. // This program is distributed in the hope that it will be useful,
  9. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU General Public License
  14. // along with this program; if not, write to the Free Software
  15. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA, or visit
  16. // http://www.gnu.org/copyleft/gpl.html .
  17. //
  18. // As a special exception, I give you permission to link to the
  19. // Avisynth C interface with independent modules that communicate with
  20. // the Avisynth C interface solely through the interfaces defined in
  21. // avisynth_c.h, regardless of the license terms of these independent
  22. // modules, and to copy and distribute the resulting combined work
  23. // under terms of your choice, provided that every copy of the
  24. // combined work is accompanied by a complete copy of the source code
  25. // of the Avisynth C interface and Avisynth itself (with the version
  26. // used to produce the combined work), being distributed under the
  27. // terms of the GNU General Public License plus this exception. An
  28. // independent module is a module which is not derived from or based
  29. // on Avisynth C Interface, such as 3rd-party filters, import and
  30. // export plugins, or graphical user interfaces.
  31. #ifndef AVS_CAPI_H
  32. #define AVS_CAPI_H
  33. #ifdef __cplusplus
  34. # define EXTERN_C extern "C"
  35. #else
  36. # define EXTERN_C
  37. #endif
  38. #ifndef AVSC_USE_STDCALL
  39. # define AVSC_CC __cdecl
  40. #else
  41. # define AVSC_CC __stdcall
  42. #endif
  43. #define AVSC_INLINE static __inline
  44. #ifdef BUILDING_AVSCORE
  45. # define AVSC_EXPORT EXTERN_C
  46. # define AVSC_API(ret, name) EXTERN_C __declspec(dllexport) ret AVSC_CC name
  47. #else
  48. # define AVSC_EXPORT EXTERN_C __declspec(dllexport)
  49. # ifndef AVSC_NO_DECLSPEC
  50. # define AVSC_API(ret, name) EXTERN_C __declspec(dllimport) ret AVSC_CC name
  51. # else
  52. # define AVSC_API(ret, name) typedef ret (AVSC_CC *name##_func)
  53. # endif
  54. #endif
  55. #endif //AVS_CAPI_H