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.

45 lines
1.2KB

  1. /*
  2. VCV-Link by Stellare Modular
  3. Copyright (C) 2017 - Vincenzo Pietropaolo, Sander Baan
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  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. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #ifndef LINKWRAPPER_H
  16. #define LINKWRAPPER_H
  17. #ifdef LINK_WRAPPER_DLL
  18. #define EXPORT_ATTRIBUTES __declspec(dllexport)
  19. #else
  20. #define EXPORT_ATTRIBUTES
  21. #endif // LINK_WRAPPER_DLL
  22. #include<stddef.h>
  23. extern "C" {
  24. /* Link opaque handle */
  25. typedef size_t link_handle;
  26. /* Minimalistic Link API */
  27. EXPORT_ATTRIBUTES link_handle* create_link_wrapper();
  28. EXPORT_ATTRIBUTES void delete_link_wrapper(link_handle*);
  29. EXPORT_ATTRIBUTES double get_link_phase(link_handle*, double);
  30. } // extern "C"
  31. #endif // LINKWRAPPER_H