summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Jingle/Jingle.vcxproj45
-rw-r--r--plugins/Jingle/Jingle.vcxproj.filters31
-rw-r--r--plugins/Jingle/res/Version.rc9
-rw-r--r--plugins/Jingle/res/main.icobin0 -> 5430 bytes
-rw-r--r--plugins/Jingle/res/resource.rc42
-rw-r--r--plugins/Jingle/src/main.cpp43
-rw-r--r--plugins/Jingle/src/resource.h16
-rw-r--r--plugins/Jingle/src/stdafx.cxx18
-rw-r--r--plugins/Jingle/src/stdafx.h38
-rw-r--r--plugins/Jingle/src/version.h13
10 files changed, 255 insertions, 0 deletions
diff --git a/plugins/Jingle/Jingle.vcxproj b/plugins/Jingle/Jingle.vcxproj
new file mode 100644
index 0000000000..1ad612cac7
--- /dev/null
+++ b/plugins/Jingle/Jingle.vcxproj
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectName>Jingle</ProjectName>
+ <ProjectGuid>{D3E24A92-E2C3-440F-BC87-002AB822ABFB}</ProjectGuid>
+ </PropertyGroup>
+ <ImportGroup Label="PropertySheets">
+ <Import Project="$(ProjectDir)..\..\build\vc.common\plugin.props" />
+ </ImportGroup>
+ <ItemDefinitionGroup>
+ <ClCompile>
+ <AdditionalIncludeDirectories>..\..\include\glib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ </ClCompile>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="src\main.cpp" />
+ <ClCompile Include="src\stdafx.cxx">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
+ <ClInclude Include="src\stdafx.h" />
+ <ClInclude Include="src\version.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="res\resource.rc" />
+ <ResourceCompile Include="res\Version.rc" />
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/plugins/Jingle/Jingle.vcxproj.filters b/plugins/Jingle/Jingle.vcxproj.filters
new file mode 100644
index 0000000000..df6abcafef
--- /dev/null
+++ b/plugins/Jingle/Jingle.vcxproj.filters
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(ProjectDir)..\..\build\vc.common\common.filters" />
+ <ItemGroup>
+ <ClCompile Include="src\main.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="src\stdafx.cxx">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="src\voip.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="src\stdafx.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="src\version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ <ResourceCompile Include="res\resource.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/plugins/Jingle/res/Version.rc b/plugins/Jingle/res/Version.rc
new file mode 100644
index 0000000000..5a5ddd63ed
--- /dev/null
+++ b/plugins/Jingle/res/Version.rc
@@ -0,0 +1,9 @@
+// Microsoft Visual C++ generated resource script.
+//
+#ifdef APSTUDIO_INVOKED
+#error this file is not editable by Microsoft Visual C++
+#endif //APSTUDIO_INVOKED
+
+#include "..\src\version.h"
+
+#include "..\..\build\Version.rc"
diff --git a/plugins/Jingle/res/main.ico b/plugins/Jingle/res/main.ico
new file mode 100644
index 0000000000..1660e71a33
--- /dev/null
+++ b/plugins/Jingle/res/main.ico
Binary files differ
diff --git a/plugins/Jingle/res/resource.rc b/plugins/Jingle/res/resource.rc
new file mode 100644
index 0000000000..5843ada411
--- /dev/null
+++ b/plugins/Jingle/res/resource.rc
@@ -0,0 +1,42 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "..\src\resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (Australia) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA)
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
+#pragma code_page(1252)
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_MAIN ICON "main.ico"
+
+#endif // English (Australia) resources
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
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"