interface versions
This commit is contained in:
parent
3df9125877
commit
fa4298d790
@ -62,6 +62,8 @@ struct ToxEventI {
|
|||||||
|
|
||||||
// defines the interface where to subscribe
|
// defines the interface where to subscribe
|
||||||
struct ToxEventProviderI {
|
struct ToxEventProviderI {
|
||||||
|
static constexpr const char* version {"1"};
|
||||||
|
|
||||||
virtual ~ToxEventProviderI(void) {}
|
virtual ~ToxEventProviderI(void) {}
|
||||||
// TODO: unsub
|
// TODO: unsub
|
||||||
virtual void subscribe(ToxEventI* object, const Tox_Event_Type event_type) = 0;
|
virtual void subscribe(ToxEventI* object, const Tox_Event_Type event_type) = 0;
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
// defines the full interface for tox
|
// defines the full interface for tox
|
||||||
// HACK: raw
|
// HACK: raw
|
||||||
struct ToxI_raw {
|
struct ToxI_raw {
|
||||||
|
static constexpr const char* version {"6"};
|
||||||
|
|
||||||
virtual ~ToxI_raw(void) {}
|
virtual ~ToxI_raw(void) {}
|
||||||
|
|
||||||
// TODO: tox version
|
// TODO: tox version
|
||||||
@ -177,6 +179,8 @@ struct ToxI_raw {
|
|||||||
|
|
||||||
// HACK: work around zppbits inability to pass string_view as parameter ( https://github.com/eyalz800/zpp_bits/issues/107 )
|
// HACK: work around zppbits inability to pass string_view as parameter ( https://github.com/eyalz800/zpp_bits/issues/107 )
|
||||||
struct ToxI : public ToxI_raw {
|
struct ToxI : public ToxI_raw {
|
||||||
|
static constexpr const char* version {ToxI_raw::version};
|
||||||
|
|
||||||
Tox_Err_Set_Info toxSelfSetName_str(const std::string& name) {
|
Tox_Err_Set_Info toxSelfSetName_str(const std::string& name) {
|
||||||
return toxSelfSetName(name);
|
return toxSelfSetName(name);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
// defines the private interface for tox
|
// defines the private interface for tox
|
||||||
struct ToxPrivateI {
|
struct ToxPrivateI {
|
||||||
|
static constexpr const char* version {"1"};
|
||||||
|
|
||||||
virtual ~ToxPrivateI(void) {}
|
virtual ~ToxPrivateI(void) {}
|
||||||
|
|
||||||
virtual uint16_t toxDHTGetNumCloselist(void) = 0;
|
virtual uint16_t toxDHTGetNumCloselist(void) = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user