diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/replicant/ssdp/cb_ssdp.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/replicant/ssdp/cb_ssdp.h')
-rw-r--r-- | Src/replicant/ssdp/cb_ssdp.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Src/replicant/ssdp/cb_ssdp.h b/Src/replicant/ssdp/cb_ssdp.h new file mode 100644 index 00000000..75e24978 --- /dev/null +++ b/Src/replicant/ssdp/cb_ssdp.h @@ -0,0 +1,21 @@ +#pragma once +#include "foundation/dispatch.h" + +class cb_ssdp : public Wasabi2::Dispatchable +{ +protected: + cb_ssdp() : Wasabi2::Dispatchable(DISPATCHABLE_VERSION) {} + ~cb_ssdp() {} + +public: + void OnServiceConnected(nx_uri_t location, nx_string_t type, nx_string_t usn) { return SSDPCallback_OnServiceConnected(location, type, usn); } + void OnServiceDisconnected(nx_string_t usn) { return SSDPCallback_OnServiceDisconnected(usn); } + + enum + { + DISPATCHABLE_VERSION=0, + }; +private: + virtual void WASABICALL SSDPCallback_OnServiceConnected(nx_uri_t location, nx_string_t type, nx_string_t usn)=0; + virtual void WASABICALL SSDPCallback_OnServiceDisconnected(nx_string_t usn)=0; +};
\ No newline at end of file |