Collection of tools useful for audio production
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.

62 lines
1.9KB

  1. /*
  2. * Carla Backend
  3. * Copyright (C) 2011-2012 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the COPYING file
  16. */
  17. #ifndef CARLA_SHARED_H
  18. #define CARLA_SHARED_H
  19. #include "carla_backend.hpp"
  20. CARLA_BACKEND_START_NAMESPACE
  21. /*!
  22. * @defgroup CarlaBackendShared Carla Backend Shared Code
  23. *
  24. * @{
  25. */
  26. const char* BinaryType2str(const BinaryType type);
  27. const char* PluginType2str(const PluginType type);
  28. const char* PluginCategory2str(const PluginCategory category);
  29. const char* ParameterType2str(const ParameterType type);
  30. const char* InternalParametersIndex2str(const InternalParametersIndex index);
  31. const char* CustomDataType2str(const CustomDataType type);
  32. const char* GuiType2str(const GuiType type);
  33. const char* OptionsType2str(const OptionsType type);
  34. const char* CallbackType2str(const CallbackType type);
  35. const char* ProcessModeType2str(const ProcessModeType type);
  36. CustomDataType getCustomDataStringType(const char* const stype);
  37. const char* getCustomDataTypeString(const CustomDataType type);
  38. const char* getBinaryBidgePath(const BinaryType type);
  39. const char* getPluginTypeString(const PluginType type);
  40. void* getPointer(const uintptr_t addr);
  41. PluginCategory getPluginCategoryFromName(const char* const name);
  42. const char* getLastError();
  43. void setLastError(const char* const error);
  44. #ifndef BUILD_BRIDGE
  45. uint32_t getPluginHintsFromNative(const uint32_t nativeHints);
  46. #endif
  47. /**@}*/
  48. CARLA_BACKEND_END_NAMESPACE
  49. #endif // CARLA_SHARED_H