source: libpipi/trunk/pipi-sharp/Pipi.cs @ 2869

Revision 2869, 600 bytes checked in by sam, 5 years ago (diff)

Reorganise ThePimp? and pipi-sharp, adding a test program and allowing to
build using the autotools.

RevLine 
[2866]1// MyClass.cs created with MonoDevelop
2// User: sam at 13:14 04/10/2008
3//
4// To change standard headers go to Edit->Preferences->Coding->Standard Headers
5//
6
7using System;
8using System.Runtime.InteropServices;
9using System.Security;
10
11namespace Pipi
12{
13    public static class Libpipi
14    {
15        [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl),
16         SuppressUnmanagedCodeSecurity]
17        private static extern IntPtr pipi_get_version();
18        public static string getVersion()
19        {
20            return Marshal.PtrToStringAnsi(pipi_get_version());
21        }
22    }
23}
Note: See TracBrowser for help on using the repository browser.