Parcourir la source

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
remotes/tiles
sam il y a 16 ans
Parent
révision
38147df5af
4 fichiers modifiés avec 10 ajouts et 10 suppressions
  1. +6
    -6
      pipi-sharp/Picture.cs
  2. +1
    -1
      pipi-sharp/Pipi.cs
  3. +1
    -1
      pipi-sharp/pipi-sharp.dll.config.in
  4. +2
    -2
      pipi-sharp/pipi-sharp.pc.in

+ 6
- 6
pipi-sharp/Picture.cs Voir le fichier

@@ -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)


+ 1
- 1
pipi-sharp/Pipi.cs Voir le fichier

@@ -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()


+ 1
- 1
pipi-sharp/pipi-sharp.dll.config.in Voir le fichier

@@ -1,3 +1,3 @@
<configuration>
<dllmap dll="libpipi.dll" target="@abs_top_srcdir@/pipi/.libs/libpipi@LT_SUFFIX@" />
<dllmap dll="libpipi-0.dll" target="@abs_top_srcdir@/pipi/.libs/libpipi@LT_SUFFIX@" />
</configuration>

+ 2
- 2
pipi-sharp/pipi-sharp.pc.in Voir le fichier

@@ -1,5 +1,5 @@
Name: Pipi
Description: Pipi
Name: pipi-sharp
Description: pipi-sharp
Version: 0.1

Requires:


Chargement…
Annuler
Enregistrer