diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-09 15:03:09 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-09 15:03:09 +0300 |
commit | 7c33e4a07ba1f22a58c291018ca99a4f6becb1fe (patch) | |
tree | 4a8ef2882a0cc26e2f583b56fab9054d9f5e72f6 /include/m_jabber.h | |
parent | 14e09a5f84023ad21a2f494ced01a991966abee4 (diff) |
fixes #3351 (Jingle: Separate all VOIP-related code from Jabber to Jingle plugin)
Diffstat (limited to 'include/m_jabber.h')
-rw-r--r-- | include/m_jabber.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/m_jabber.h b/include/m_jabber.h index 758dd6bc6c..72a16801bf 100644 --- a/include/m_jabber.h +++ b/include/m_jabber.h @@ -116,8 +116,11 @@ struct IJabberInterface // Returns Jabber module name. DO NOT free the returned string.
virtual char* STDMETHODCALLTYPE GetModuleName() const = 0;
+ // Returns our full JID.
+ virtual char* STDMETHODCALLTYPE GetFullJid() const = 0;
+
// Returns id that can be used for next message sent through SendXmlNode().
- virtual int STDMETHODCALLTYPE SerialNext() = 0;
+ virtual char* STDMETHODCALLTYPE GetSerialNext() = 0;
// Registers incoming <presence/> handler. Returns handler handle on success or NULL on error.
@@ -149,8 +152,8 @@ struct IJabberInterface // Returns features supported by JID in format "feature1\0feature2\0...\0featureN\0\0" (a list of features separated by \0 character and terminated with two \0 characters), or NULL on error. JID may contain resource name to get features of a specific resource. If there's no resource name, GetResourceFeatures() returns features for the same resource as IJabberSysInterface::GetBestResourceName() returns. If a feature you're checking for is not supported by Jabber plugin natively, you must register it with RegisterFeature(), otherwise GetContactFeatures() won't be able to return it. You must free returned string using mir_free().
virtual char* STDMETHODCALLTYPE GetResourceFeatures(LPCSTR jid) = 0;
- // Returns the connection handle
- virtual HNETLIBUSER STDMETHODCALLTYPE GetHandle(void) = 0;
+ // Sends a stanza
+ virtual void STDMETHODCALLTYPE SendXml(const TiXmlElement *pXml) = 0;
};
/*
|