summaryrefslogtreecommitdiff
path: root/plugins/Jingle/src/main.cpp
blob: 5936eb7fc9817328b6f70b6397100c6b90d6992a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#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()
{
	SetEnvironmentVariableW(L"GST_PLUGIN_PATH", VARSW(L"%miranda_path%\\Libs\\gst_plugins"));

	CreateServiceFunction(MS_JINGLE_SERVICE, &FakeService);
	return 0;
}