diff options
| author | George Hazan <ghazan@miranda.im> | 2023-02-25 17:58:28 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2023-02-25 17:58:28 +0300 |
| commit | 30a2dd50ffd863364c55cce89c0641d9023d306b (patch) | |
| tree | 4f71d125f30e75a0b68edcdd8af125f10b3ffccd /plugins/Jingle/src | |
| parent | 69aaf0e701a5708771d41f4fadaf0468974b1c6d (diff) | |
fixes #3336 (GStreamer libraries)
Diffstat (limited to 'plugins/Jingle/src')
| -rw-r--r-- | plugins/Jingle/src/main.cpp | 43 | ||||
| -rw-r--r-- | plugins/Jingle/src/resource.h | 16 | ||||
| -rw-r--r-- | plugins/Jingle/src/stdafx.cxx | 18 | ||||
| -rw-r--r-- | plugins/Jingle/src/stdafx.h | 38 | ||||
| -rw-r--r-- | plugins/Jingle/src/version.h | 13 |
5 files changed, 128 insertions, 0 deletions
diff --git a/plugins/Jingle/src/main.cpp b/plugins/Jingle/src/main.cpp new file mode 100644 index 0000000000..c52013a244 --- /dev/null +++ b/plugins/Jingle/src/main.cpp @@ -0,0 +1,43 @@ +#include "stdafx.h" + +CMPlugin g_plugin; + +///////////////////////////////////////////////////////////////////////////////////////// + +PLUGININFOEX pluginInfoEx = { + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + // D3E24A92-E2C3-440F-BC87-00 2A B8 22 ABFB + {0xD3E24A92, 0xE2C3, 0x440F, {0xbc, 0x87, 0x00, 0x2A, 0xb8, 0x22, 0xab, 0xf8}} +}; + +CMPlugin::CMPlugin() : + PLUGIN<CMPlugin>("Jingle", pluginInfoEx) +{ +} + +///////////////////////////////////////////////////////////////////////////////////////// +// Load (hook ModulesLoaded) + +static INT_PTR FakeService(WPARAM, LPARAM) +{ + g_assertion_message(0, 0, 0, 0, 0); + g_object_unref(0); + gst_bin_add(0, 0); + gst_rtp_header_extension_set_id(0, 0); + gst_sdp_message_as_text(0); + gst_webrtc_session_description_free(0); + return 0; +} + +int CMPlugin::Load() +{ + CreateServiceFunction("Jingle/StartSession", &FakeService); + return 0; +} diff --git a/plugins/Jingle/src/resource.h b/plugins/Jingle/src/resource.h new file mode 100644 index 0000000000..38cffef069 --- /dev/null +++ b/plugins/Jingle/src/resource.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by X:\install\git\miranda\miranda-ng\plugins\Alarms\res\resource.rc +// +#define IDI_MAIN 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40000 +#define _APS_NEXT_CONTROL_VALUE 1080 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/plugins/Jingle/src/stdafx.cxx b/plugins/Jingle/src/stdafx.cxx new file mode 100644 index 0000000000..af72746415 --- /dev/null +++ b/plugins/Jingle/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-23 Miranda NG team (https://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "stdafx.h"
\ No newline at end of file diff --git a/plugins/Jingle/src/stdafx.h b/plugins/Jingle/src/stdafx.h new file mode 100644 index 0000000000..ace5347f03 --- /dev/null +++ b/plugins/Jingle/src/stdafx.h @@ -0,0 +1,38 @@ +#ifndef _COMMONHEADERS_H +#define _COMMONHEADERS_H + +#include <gst/gst.h> +#include <gst/sdp/sdp.h> +#include <gst/rtp/rtp.h> + +#define GST_USE_UNSTABLE_API +#include <gst/webrtc/webrtc.h> + +#pragma comment(lib, "glib-2.0.lib") +#pragma comment(lib, "gobject-2.0.lib") +#pragma comment(lib, "gstreamer-1.0.lib") +#pragma comment(lib, "gstrtp-1.0.lib") +#pragma comment(lib, "gstsdp-1.0.lib") +#pragma comment(lib, "gstwebrtc-1.0.lib") + +#include <windows.h> + +#include <list> + +#include <newpluginapi.h> +#include <m_jabber.h> +#include <m_langpack.h> +#include <m_voice.h> +#include <m_voiceservice.h> + +#include "resource.h" +#include "version.h" + +struct CMPlugin : public PLUGIN<CMPlugin> +{ + CMPlugin(); + + int Load() override; +}; + +#endif //_COMMONHEADERS_H
\ No newline at end of file diff --git a/plugins/Jingle/src/version.h b/plugins/Jingle/src/version.h new file mode 100644 index 0000000000..dd024eeb98 --- /dev/null +++ b/plugins/Jingle/src/version.h @@ -0,0 +1,13 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 0 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 1 + +#include <stdver.h> + +#define __PLUGIN_NAME "Jingle" +#define __FILENAME "Jingle" +#define __DESCRIPTION "Jingle support for Jabber plugin." +#define __AUTHOR "George Hazan" +#define __AUTHORWEB "https://miranda-ng.org/p/Jingle" +#define __COPYRIGHT "© 2023 George Hazan" |
