cleanup and made it working!

This commit is contained in:
2020-04-18 19:57:47 +02:00
parent b3d250dd43
commit 4544a38175
6 changed files with 548 additions and 488 deletions

View File

@@ -7,16 +7,30 @@
#ifndef PLUGIN_H
#define PLUGIN_H
#include <QUdpSocket>
#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
#include <Windows.h>
#define PLUGINS_EXPORTDLL __declspec(dllexport)
#else
#define PLUGINS_EXPORTDLL __attribute__ ((visibility("default")))
#endif
#include "ledhandler.h"
#include "ts3_functions.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#ifdef __cplusplus
extern "C" {
#endif
QUdpSocket *mUdpSock;
LEDHandler *mLedHandler;
/* Required functions */
PLUGINS_EXPORTDLL const char* ts3plugin_name();
PLUGINS_EXPORTDLL const char* ts3plugin_version();