Adjust to changes in gir-to-d

This commit is contained in:
Matthias Klumpp 2017-05-26 00:25:23 +02:00
parent fb79a4e3a2
commit b181114b57
12 changed files with 22 additions and 24 deletions

View File

@ -115,9 +115,7 @@ alias: GLIB_SYSDEF_POLLNVAL =32
### predifined: lib
###########################################################
inputRoot: invalid
srcDir: .
bindDir: gi
lookup: APILookupAppStream.txt
lookup: APILookupGLib.txt

View File

@ -20,12 +20,12 @@
# must start with wrap
wrap: appstream
file: /usr/share/gir-1.0/AppStream-1.0.gir
file: AppStream-1.0.gir
addAliases: start
public import gi.glibtypes;
public import gi.gobjecttypes;
public import gi.giotypes;
public import glib.c.types;
public import gobject.c.types;
public import gio.c.types;
public import core.stdc.stdio;
public import core.stdc.string;

View File

@ -20,8 +20,8 @@
# must start with wrap
wrap: glib
file: /usr/share/gir-1.0/GLib-2.0.gir
file: /usr/share/gir-1.0/GModule-2.0.gir
file: GLib-2.0.gir
file: GModule-2.0.gir
addAliases: start
public alias uint uid_t;
@ -117,7 +117,7 @@ addAliases: start
Type* gMalloc(Type)()
{
import gi.glib;
import glib.c.functions;
return cast(Type*)g_malloc0(Type.sizeof);
}
@ -1076,7 +1076,7 @@ code: end
struct: Str
import: core.stdc.stdio
import: core.stdc.string
import: gi.gobjecttypes
import: gobject.c.types
code: start
/*
* Convert C-style 0 terminated string s to char[] string.

View File

@ -24,7 +24,7 @@ wrap: gobject
file: GObject-2.0.gir
addAliases: start
public import gi.glibtypes;
public import glib.c.types;
addAliases: end
noAlias: Type

View File

@ -20,11 +20,11 @@
# must start with wrap
wrap: gio
file: /usr/share/gir-1.0/Gio-2.0.gir
file: Gio-2.0.gir
addAliases: start
public import gi.glibtypes;
public import gi.gobjecttypes;
public import glib.c.types;
public import gobject.c.types;
addAliases: end
struct:

View File

@ -19,7 +19,7 @@
module asgen.bindings.appstream_utils;
import gi.appstreamtypes;
import appstream.c.types;
extern(C):
nothrow:

View File

@ -19,8 +19,8 @@
module asgen.bindings.gdkpixbuf;
import gi.glibtypes;
import gi.giotypes;
import glib.c.types;
import gio.c.types;
import asgen.bindings.cairo;
extern(C):

View File

@ -19,7 +19,7 @@
module asgen.bindings.rsvg;
import gi.glibtypes;
import glib.c.types;
import asgen.bindings.cairo;
extern(C):

View File

@ -28,7 +28,7 @@ import std.json;
import std.typecons;
static import std.file;
public import gi.appstreamtypes : FormatVersion;
public import appstream.c.types : FormatVersion;
import asgen.utils : existsAndIsDir, randomString;
import asgen.logging;

View File

@ -26,7 +26,7 @@ import std.array : empty;
import std.algorithm : startsWith;
import std.stdio;
import gobject.ObjectG;
import gi.appstream;
import appstream.c.functions;
import appstream.Component;
import appstream.Screenshot;
import appstream.Image;

View File

@ -31,8 +31,8 @@ import asgen.bindings.cairo;
import asgen.bindings.rsvg;
import asgen.bindings.gdkpixbuf;
import gi.glibtypes;
import gi.glib;
import glib.c.types;
import glib.c.functions;
import asgen.logging;
import asgen.config;
@ -132,7 +132,7 @@ public:
this (ubyte[] imgBytes, ImageFormat ikind)
{
import gi.gio;
import gio.c.functions;
import gio.MemoryInputStream;
auto istream = new MemoryInputStream ();

View File

@ -299,7 +299,7 @@ public:
auto customHashTable = cpt.getCustom ();
auto noCustomKeysAllowed = conf.allowedCustomKeys.length == 0;
if (customHashTable.size > 0) {
import gi.glibtypes;
import glib.c.types;
if (noCustomKeysAllowed) {
// if we don't allow any custom keys, we can delete them faster