1
0

api.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef __WASABI_API_H
  2. #define __WASABI_API_H
  3. #include "wasabicfg.h"
  4. #include "ServiceManager.h"
  5. #include "SysCallbacks.h"
  6. #include "MemoryManager.h"
  7. #include "URLManager.h"
  8. #include "PaletteManager.h"
  9. #include "GammaManagerAPI.h"
  10. #define WASABI_API_SVC serviceManager
  11. #define WASABI_API_SYSCB sysCallbacks
  12. #define WASABI_API_VIDEOPREFERENCES videoPreferences
  13. #define WASABI_API_MEMMGR memoryManager
  14. extern PaletteManager *paletteManager;
  15. #define WASABI_API_PALETTE paletteManager
  16. extern GammaManagerAPI *gammaManager;
  17. #define WASABI_API_COLORTHEMES gammaManager
  18. #include "../tagz/api_tagz.h"
  19. extern api_tagz *tagz;
  20. #define WINAMP5_API_TAGZ tagz
  21. #include "feeds.h"
  22. extern VideoTextFeed *videoTextFeed;
  23. extern PlaylistTextFeed *playlistTextFeed;
  24. #include "application.h"
  25. #define WASABI_API_APP application
  26. #include "Metadata.h"
  27. #define WASABI_API_METADATA metadata
  28. #include "../nu/threadpool/ThreadPool.h"
  29. extern ThreadPool *threadPool;
  30. #define WASABI_API_THREADPOOL threadPool
  31. #include "stats.h"
  32. #define AGAVE_API_STATS (&stats)
  33. /* Services we need from W5S services */
  34. #include "../playlist/api_playlistmanager.h"
  35. extern api_playlistmanager *playlistManager;
  36. #define AGAVE_API_PLAYLISTMANAGER playlistManager
  37. #include "../playlist/api_playlists.h"
  38. extern api_playlists *playlistsManager;
  39. #define AGAVE_API_PLAYLISTS playlistsManager
  40. #include "../Components/wac_downloadManager/wac_downloadManager_api.h"
  41. extern URLManager *urlmanagerApi;
  42. #define AGAVE_API_URLMANAGER urlmanagerApi
  43. #include "./winampApi.h"
  44. extern WinampApi *winampApi;
  45. #define WASABI_API_WINAMP winampApi
  46. #include "../jpeg/amg.h"
  47. extern api_amgsucks *amgSucks;
  48. #define AGAVE_API_AMGSUCKS amgSucks
  49. #include "../Agave/AlbumArt/api_albumart.h"
  50. extern api_albumart *albumArtApi;
  51. #define AGAVE_API_ALBUMART albumArtApi
  52. /* Services we need to watch for */
  53. #include <api/skin/api_skin.h>
  54. #define WASABI_API_SKIN skinApi
  55. #endif