From 38147df5af04d070a9594bf194172327257eceaa Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 12 Oct 2008 23:40:58 +0000 Subject: [PATCH] pipi-sharp: use libpipi-0.dll instead of libpipi.dll in the C# bindings. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2939 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi-sharp/Picture.cs | 12 ++++++------ pipi-sharp/Pipi.cs | 2 +- pipi-sharp/pipi-sharp.dll.config.in | 2 +- pipi-sharp/pipi-sharp.pc.in | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pipi-sharp/Picture.cs b/pipi-sharp/Picture.cs index ecfbbdb..339f45f 100644 --- a/pipi-sharp/Picture.cs +++ b/pipi-sharp/Picture.cs @@ -33,7 +33,7 @@ namespace Pipi _picture = p; } - [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), + [DllImport("libpipi-0.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern int pipi_free(IntPtr img); ~Picture() @@ -41,7 +41,7 @@ namespace Pipi pipi_free(_picture); } - [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), + [DllImport("libpipi-0.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern IntPtr pipi_load(string s); public static Picture Load(string s) @@ -55,7 +55,7 @@ namespace Pipi return ret; } - [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), + [DllImport("libpipi-0.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern int pipi_save(IntPtr p, string s); public int Save(string s) @@ -63,7 +63,7 @@ namespace Pipi return pipi_save(_picture, s); } - [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), + [DllImport("libpipi-0.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern int pipi_get_image_width(IntPtr img); public int Width @@ -71,7 +71,7 @@ namespace Pipi get { return pipi_get_image_width(_picture); } } - [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), + [DllImport("libpipi-0.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern int pipi_get_image_height(IntPtr img); public int Height @@ -87,7 +87,7 @@ namespace Pipi public Int64 bytes; } - [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), + [DllImport("libpipi-0.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern IntPtr pipi_getpixels(IntPtr img, int type); public byte[] GetPixels(int w, int h, int x, int y) diff --git a/pipi-sharp/Pipi.cs b/pipi-sharp/Pipi.cs index 5313d46..844f483 100644 --- a/pipi-sharp/Pipi.cs +++ b/pipi-sharp/Pipi.cs @@ -20,7 +20,7 @@ namespace Pipi { public static class Libpipi { - [DllImport("libpipi.dll", CallingConvention=CallingConvention.Cdecl), + [DllImport("libpipi-0.dll", CallingConvention=CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] private static extern IntPtr pipi_get_version(); public static string getVersion() diff --git a/pipi-sharp/pipi-sharp.dll.config.in b/pipi-sharp/pipi-sharp.dll.config.in index 17d1ac1..2badfb0 100644 --- a/pipi-sharp/pipi-sharp.dll.config.in +++ b/pipi-sharp/pipi-sharp.dll.config.in @@ -1,3 +1,3 @@ - + diff --git a/pipi-sharp/pipi-sharp.pc.in b/pipi-sharp/pipi-sharp.pc.in index ff88ab7..145a17b 100644 --- a/pipi-sharp/pipi-sharp.pc.in +++ b/pipi-sharp/pipi-sharp.pc.in @@ -1,5 +1,5 @@ -Name: Pipi -Description: Pipi +Name: pipi-sharp +Description: pipi-sharp Version: 0.1 Requires: