Re: [Maria-discuss] writing plugin with .net language (C#)

2015-09-14 Thread Justin Swanhart
Hi, You could try: class DaemonPlugin { [DllExport("add",CallingConvention = CallingConvention.Cdecl)] public static int add(int left, int right) { return left + right; } } Then write a C++ wrapper around the exported classes. I don't think C# will be able to handle the pointers

Re: [Maria-discuss] writing plugin with .net language (C#)

2015-09-14 Thread Sergei Golubchik
Hi, Roberto! On Sep 13, Roberto Spadim wrote: > Hi guys, > I have a program wrote in c#, it process some code and the result is a > struct (an array of string/double/int) > I want to include this program inside mariadb server as a daemon plugin (to > process data) + a storage engine (to read