1
0

svc_fileplayback.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "foundation/dispatch.h"
  3. #include "nx/nxuri.h"
  4. #include "nx/nxfile.h"
  5. #include "foundation/error.h"
  6. #include "ifc_fileplayback.h"
  7. #include "metadata/ifc_metadata.h"
  8. // {AAB6F26D-FF99-4CE8-BC7F-81BEA9F35CA9}
  9. static const GUID svc_fileplayback_type_guid =
  10. { 0xaab6f26d, 0xff99, 0x4ce8, { 0xbc, 0x7f, 0x81, 0xbe, 0xa9, 0xf3, 0x5c, 0xa9 } };
  11. class NOVTABLE svc_fileplayback : public Wasabi2::Dispatchable
  12. {
  13. protected:
  14. svc_fileplayback() : Dispatchable(DISPATCHABLE_VERSION) {}
  15. ~svc_fileplayback() {}
  16. public:
  17. static GUID GetServiceType() { return svc_fileplayback_type_guid; }
  18. ns_error_t CreatePlayback(ifc_fileplayback **out_playback_object, nx_uri_t filename, nx_file_t file, ifc_metadata *parent_metadata, ifc_fileplayback_parent *parent) { return FilePlaybackService_CreatePlayback(out_playback_object, filename, file, parent_metadata, parent); }
  19. enum
  20. {
  21. DISPATCHABLE_VERSION=0,
  22. };
  23. protected:
  24. /* do _not_ retain/release the ifc_fileplayback_parent object! */
  25. virtual ns_error_t WASABICALL FilePlaybackService_CreatePlayback(ifc_fileplayback **out_playback_object, nx_uri_t filename, nx_file_t file, ifc_metadata *parent_metadata, ifc_fileplayback_parent *parent)=0;
  26. };