Quellcode durchsuchen

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 vor 16 Jahren
Ursprung
Commit
38147df5af
4 geänderte Dateien mit 10 neuen und 10 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

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

Requires:


Laden…
Abbrechen
Speichern