Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-11

G_TYPE_STRV in Pascal?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Henry Vermaak
to Matthias Klumpp

2009/11/5 Matthias Klumpp :

Show quoted text 8 lines
Hello! I currently try to implement parts of the DBUs-GLib-API in Pascal. To test some of the functions, I need the G_TYPE G_TYPE_STRV (look here: http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#G-TYPE-STRV--CAPS ) Does anyone know, how to represent this type in Pascal? E.g. G_TYPE_STRING is represented by GType(16 shl G_TYPE_FUNDAMENTAL_SHIFT);, which is the right one for G_TYPE_STRV?

Look at packages/gtk2/src/glib/gboxed.inc to see how these are implemented (function implementation is in glib2.pas). You can probably add it to that file.

Henry

Reply by email