vala r1543 - in trunk: . vapi
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1543 - in trunk: . vapi
- Date: Mon, 2 Jun 2008 14:19:49 +0000 (UTC)
Author: juergbi
Date: Mon Jun 2 14:19:49 2008
New Revision: 1543
URL: http://svn.gnome.org/viewvc/vala?rev=1543&view=rev
Log:
2008-06-02 JÃrg Billeter <j bitron ch>
* vapi/gmodule-2.0.vapi:
* vapi/sdl-gfx.vapi:
* vapi/sdl-mixer.vapi:
* vapi/sdl-ttf.vapi:
* vapi/sdl.vapi:
Use [Compact] attribute, patch by Phil Housley
Modified:
trunk/ChangeLog
trunk/vapi/gmodule-2.0.vapi
trunk/vapi/sdl-gfx.vapi
trunk/vapi/sdl-mixer.vapi
trunk/vapi/sdl-ttf.vapi
trunk/vapi/sdl.vapi
Modified: trunk/vapi/gmodule-2.0.vapi
==============================================================================
--- trunk/vapi/gmodule-2.0.vapi (original)
+++ trunk/vapi/gmodule-2.0.vapi Mon Jun 2 14:19:49 2008
@@ -24,6 +24,7 @@
namespace GLib {
/* Dynamic Loading of Modules */
+ [Compact]
[CCode (free_function = "g_module_close", cheader_filename = "gmodule.h")]
public class Module {
public static bool supported ();
Modified: trunk/vapi/sdl-gfx.vapi
==============================================================================
--- trunk/vapi/sdl-gfx.vapi (original)
+++ trunk/vapi/sdl-gfx.vapi Mon Jun 2 14:19:49 2008
@@ -3,6 +3,7 @@
namespace SDLGraphics {
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Pixel {
[CCode (cname="pixelColor")]
public static int color(Surface dst, int16 x, int16 y, uint32 color);
@@ -13,6 +14,7 @@
}// Pixel
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Line {
[CCode (cname="hlineColor")]
public static int color_h(Surface dst, int16 x1, int16 x2,
@@ -48,6 +50,7 @@
}// Line
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Rectangle {
[CCode (cname="rectangleColor")]
public static int outline_color(Surface dst, int16 x1, int16 y1,
@@ -67,6 +70,7 @@
}// Rectangle
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Circle {
[CCode (cname="circleColor")]
public static int outline_color(Surface dst, int16 x, int16 y,
@@ -94,6 +98,7 @@
}// Circle
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Ellipse {
[CCode (cname="ellipseColor")]
public static int outline_color(Surface dst, int16 xc, int16 yc,
@@ -121,6 +126,7 @@
}// Ellipse
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Arc {
[CCode (cname="pieColor")]
public static int outline_color(Surface dst, int16 x, int16 y, int16 radius,
@@ -140,6 +146,7 @@
}// Arc
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Trigon {
[CCode (cname="trigonColor")]
public static int outline_color(Surface dst, int16 x1, int16 y1,
@@ -170,6 +177,7 @@
}// Trigon
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Polygon {
[CCode (cname="polygonColor")]
[NoArrayLength]
@@ -203,6 +211,7 @@
}// Polygon
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class BezierCurve {
[CCode (cname="bezierColor")]
[NoArrayLength]
@@ -216,6 +225,7 @@
}// BezierCurve
[CCode (cheader_filename="SDL_gfxPrimitives.h")]
+ [Compact]
public class Text {
[CCode (cname="stringColor")]
public static int color(Surface dst, int16 x, int16 y, string s, uint32 color);
@@ -229,6 +239,7 @@
}// Text
[CCode (cheader_filename="SDL_rotozoom.h")]
+ [Compact]
public class RotoZoom {
[CCode (cname="rotozoomSurface")]
public static Surface rotozoom(Surface src, double degrees,
@@ -256,6 +267,7 @@
}// RotoZoom
[CCode (cheader_filename="SDL_framerate.h", cname="FPSmanager", free_function="g_free")]
+ [Compact]
public class FramerateManager {
[CCode (cname="SDL_initFramerate")]
public void init();
@@ -271,6 +283,7 @@
}// FramerateManager
[CCode (cheader_filename="SDL_imageFilter.h")]
+ [Compact]
public class Filter {
[CCode (cname="SDL_imageFilterMMXdetect")]
public static int have_mmx();
Modified: trunk/vapi/sdl-mixer.vapi
==============================================================================
--- trunk/vapi/sdl-mixer.vapi (original)
+++ trunk/vapi/sdl-mixer.vapi Mon Jun 2 14:19:49 2008
@@ -41,6 +41,7 @@
}// MusicType
[CCode (cname="Mix_Chunk", free_function="Mix_FreeChunk")]
+ [Compact]
public class Chunk {
[CCode (cname="Mix_LoadWAV_RW")]
public Chunk.WAV(RWops src, int freesrc=0);
@@ -57,6 +58,7 @@
}// Chunk
[CCode (cname="Mix_Music", free_function="Mix_FreeMusic")]
+ [Compact]
public class Music {
[CCode (cname="Mix_GetMusicHookData")]
public static void* get_hook_data();
@@ -116,6 +118,7 @@
public int fade_in(int loops, int ms, double position=0.0);
}// Music
+ [Compact]
public class Effect {
[CCode (cname="Mix_RegisterEffect")]
public static int register(int chan, EffectCallback f,
Modified: trunk/vapi/sdl-ttf.vapi
==============================================================================
--- trunk/vapi/sdl-ttf.vapi (original)
+++ trunk/vapi/sdl-ttf.vapi Mon Jun 2 14:19:49 2008
@@ -24,6 +24,7 @@
}// FontStyle
[CCode (cname="TTF_Font", free_function="TTF_CloseFont")]
+ [Compact]
public class Font {
[CCode (cname="TTF_OpenFont")]
public Font(string file, int ptsize);
Modified: trunk/vapi/sdl.vapi
==============================================================================
--- trunk/vapi/sdl.vapi (original)
+++ trunk/vapi/sdl.vapi Mon Jun 2 14:19:49 2008
@@ -67,6 +67,7 @@
OPAQUE, TRANSPARENT
}// Opacity
+ [Compact]
public class Video {
[CCode (cname="SDL_VideoDriverName")]
public static weak string? driver_name(string namebuf, int maxlen);
@@ -92,6 +93,7 @@
}// SurfaceFlag
[CCode (cname="SDL_Surface", free_function="SDL_FreeSurface", copy_function="SDL_DisplayFormat")]
+ [Compact]
public class Surface {
public uint32 flags;
public PixelFormat format;
@@ -160,7 +162,8 @@
}// Surface
[CCode (cname="SDL_Surface")]
- public class Screen: Surface {
+ [Compact]
+ public class Screen : Surface {
[CCode (cname="SDL_GetVideoSurface")]
public static weak Screen instance();
@@ -172,6 +175,7 @@
}// Screen
[CCode (cname="SDL_PixelFormat")]
+ [Compact]
public class PixelFormat {
public Palette palette;
public uchar BitsPerPixel;
@@ -235,6 +239,7 @@
}// Palette
[CCode (cname="SDL_VideoInfo")]
+ [Compact]
public class VideoInfo {
public uint32 hw_available ;
public uint32 wm_available ;
@@ -265,6 +270,7 @@
}// OverlayFormat
[CCode (cname="SDL_Overlay", free_function="SDL_FreeYUVOverlay")]
+ [Compact]
public class Overlay {
public uint32 format;
public int w;
@@ -294,6 +300,7 @@
/// RWops
///
[CCode (cname="SDL_RWops", free_function="SDL_FreeRW")]
+ [Compact]
public class RWops {
[CCode (cname="SDL_RWFromFile")]
public RWops.from_file(string file, string mode);
@@ -316,6 +323,7 @@
}// GLattr
[CCode (cprefix="SDL_GL_", cheader_filename="SDL.h")]
+ [Compact]
public class GL {
[CCode (cname="SDL_GL_LoadLibrary")]
public static int load_library(string path);
@@ -343,6 +351,7 @@
}// GrabMode
[CCode (cprefix="SDL_WM_", cheader_filename="SDL.h")]
+ [Compact]
public class WindowManager {
[CCode (cname="SDL_WM_SetCaption")]
public static void set_caption(string title, string icon);
@@ -866,6 +875,7 @@
}// Buttons
[CCode (cname="SDL_Cursor", free_function="SDL_FreeCursor")]
+ [Compact]
public class Cursor {
public Rect area;
public int16 hot_x;
@@ -904,6 +914,7 @@
}// HatValue
[CCode (cname="SDL_Joystick", free_function="SDL_JoystickClose")]
+ [Compact]
public class Joystick {
[CCode (cname="SDL_JoystickName")]
public static weak string get_name(int device_index);
@@ -967,6 +978,7 @@
}// AudioStatus
[CCode (cname="SDL_AudioSpec")]
+ [Compact]
public class AudioSpec {
public int freq;
public AudioFormat format;
@@ -980,6 +992,7 @@
}// AudioSpec
[CCode (cname="SDL_AudioCVT")]
+ [Compact]
public class AudioConverter {
public int needed;
public AudioFormat src_format;
@@ -1002,6 +1015,7 @@
public int convert();
}// AudioConverter
+ [Compact]
public class Audio {
[CCode (cname="SDL_AudioDriverName")]
public static weak string driver_name(string namebuf, int maxlen);
@@ -1041,6 +1055,7 @@
public delegate int ThreadFunc(void* data);
[CCode (cname="SDL_Thread", free_function="SDL_WaitThread")]
+ [Compact]
public class Thread {
[CCode (cname="SDL_ThreadID")]
public static uint32 id();
@@ -1050,6 +1065,7 @@
}// Thread
[CCode (cname="SDL_mutex", free_function="SDL_DestroyMutex")]
+ [Compact]
public class Mutex {
[CCode (cname="SDL_CreateMutex")]
public Mutex();
@@ -1062,6 +1078,7 @@
}// Mutex
[CCode (cname="SDL_sem", free_function="SDL_DestroySemaphore")]
+ [Compact]
public class Semaphore {
[CCode (cname="SDL_CreateSemaphore")]
public Semaphore(uint32 initial_value);
@@ -1083,6 +1100,7 @@
}// Semaphore
[CCode (cname="SDL_cond", free_function="SDL_DestroyCond")]
+ [Compact]
public class Condition {
[CCode (cname="SDL_CreateCond")]
public Condition();
@@ -1107,6 +1125,7 @@
public delegate uint32 TimerCallback(uint32 interval, void* param);
[CCode (cname="struct _SDL_TimerID", free_function="SDL_RemoveTimer")]
+ [Compact]
public class Timer {
[CCode (cname="SDL_GetTicks")]
public static uint32 get_ticks();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]