ifc_tagprovider.h 776 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef NULLSOFT_TAG_PROVIDER_H
  2. #define NULLSOFT_TAG_PROVIDER_H
  3. #include <bfc/dispatch.h>
  4. #include <bfc/platform/types.h>
  5. #include "ifc_tagparams.h"
  6. #include <api/service/services.h>
  7. class ifc_tagprovider : public Dispatchable
  8. {
  9. protected:
  10. ifc_tagprovider() {}
  11. ~ifc_tagprovider() {}
  12. public:
  13. DISPATCH_CODES
  14. {
  15. IFC_TAGPROVIDER_GET_TAG = 10,
  16. IFC_TAGPROVIDER_FREE_TAG = 20,
  17. };
  18. wchar_t *GetTag(const wchar_t *name, ifc_tagparams *parameters); //return 0 if not found
  19. void FreeTag(wchar_t *tag);
  20. };
  21. inline wchar_t *ifc_tagprovider::GetTag(const wchar_t *name, ifc_tagparams *parameters)
  22. {
  23. return _call(IFC_TAGPROVIDER_GET_TAG, (wchar_t *)0, name, parameters);
  24. }
  25. inline void ifc_tagprovider::FreeTag(wchar_t *tag)
  26. {
  27. _voidcall(IFC_TAGPROVIDER_FREE_TAG, tag);
  28. }
  29. #endif