Last change
on this file since 2872 was
2872,
checked in by Sam Hocevar, 14 years ago
|
Start playing with scrolling widgets in Pimp.
|
File size:
945 bytes
|
Line | |
---|
1 | // |
---|
2 | // libpipi Pathetic image processing interface library |
---|
3 | // Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org> |
---|
4 | // All Rights Reserved |
---|
5 | // |
---|
6 | // $Id$ |
---|
7 | // |
---|
8 | // This library is free software. It comes without any warranty, to |
---|
9 | // the extent permitted by applicable law. You can redistribute it |
---|
10 | // and/or modify it under the terms of the Do What The Fuck You Want |
---|
11 | // To Public License, Version 2, as published by Sam Hocevar. See |
---|
12 | // http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
13 | // |
---|
14 | |
---|
15 | using System; |
---|
16 | using System.Runtime.InteropServices; |
---|
17 | using System.Security; |
---|
18 | |
---|
19 | namespace Pipi |
---|
20 | { |
---|
21 | public static class Libpipi |
---|
22 | { |
---|
23 | [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), |
---|
24 | SuppressUnmanagedCodeSecurity] |
---|
25 | private static extern IntPtr pipi_get_version(); |
---|
26 | public static string getVersion() |
---|
27 | { |
---|
28 | return Marshal.PtrToStringAnsi(pipi_get_version()); |
---|
29 | } |
---|
30 | } |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.