Unverified Commit 77f0cd78 authored by Mike Wey's avatar Mike Wey Committed by GitHub
Browse files

Merge pull request #340 from KonstantIMP/patch-2

Fix ApiLookup errors
parents abcd2093 08786825
...@@ -121,16 +121,16 @@ generate: generate-runtime ...@@ -121,16 +121,16 @@ generate: generate-runtime
generate-runtime: $(GIRTOD) generate-runtime: $(GIRTOD)
ifndef girdir ifndef girdir
$(GIRTOD) -i src --use-runtime-linker $(GIRTOD) --use-runtime-linker -i src/ -o generated/
else else
$(GIRTOD) -i src --use-runtime-linker -g $(girdir) $(GIRTOD) --use-runtime-linker -i src/ -o generated/ -g $(girdir)
endif endif
generate-compiletime: $(GIRTOD) generate-compiletime: $(GIRTOD)
ifndef girdir ifndef girdir
$(GIRTOD) -i src $(GIRTOD) -i src -o generated/
else else
$(GIRTOD) -i src -g $(girdir) $(GIRTOD) -i src -o generated/ -g $(girdir)
endif endif
$(GIRTOD): $(GIRTOD):
......
...@@ -27,6 +27,7 @@ module gst.mpegts.AtscMultString; ...@@ -27,6 +27,7 @@ module gst.mpegts.AtscMultString;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.PtrArray; private import glib.PtrArray;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.AtscStringSegment; ...@@ -26,6 +26,7 @@ module gst.mpegts.AtscStringSegment;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -27,6 +27,7 @@ module gst.mpegts.AtscVCTSource; ...@@ -27,6 +27,7 @@ module gst.mpegts.AtscVCTSource;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.PtrArray; private import glib.PtrArray;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.ComponentDescriptor; ...@@ -26,6 +26,7 @@ module gst.mpegts.ComponentDescriptor;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.DVBParentalRatingItem; ...@@ -26,6 +26,7 @@ module gst.mpegts.DVBParentalRatingItem;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.DataBroadcastDescriptor; ...@@ -26,6 +26,7 @@ module gst.mpegts.DataBroadcastDescriptor;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -28,6 +28,7 @@ private import glib.ArrayG; ...@@ -28,6 +28,7 @@ private import glib.ArrayG;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.PtrArray; private import glib.PtrArray;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gobject.ObjectG; private import gobject.ObjectG;
private import gst.mpegts.CableDeliverySystemDescriptor; private import gst.mpegts.CableDeliverySystemDescriptor;
private import gst.mpegts.ComponentDescriptor; private import gst.mpegts.ComponentDescriptor;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.DvbMultilingualBouquetNameItem; ...@@ -26,6 +26,7 @@ module gst.mpegts.DvbMultilingualBouquetNameItem;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.DvbMultilingualComponentItem; ...@@ -26,6 +26,7 @@ module gst.mpegts.DvbMultilingualComponentItem;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.DvbMultilingualNetworkNameItem; ...@@ -26,6 +26,7 @@ module gst.mpegts.DvbMultilingualNetworkNameItem;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.DvbMultilingualServiceNameItem; ...@@ -26,6 +26,7 @@ module gst.mpegts.DvbMultilingualServiceNameItem;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -27,6 +27,7 @@ module gst.mpegts.ExtendedEventDescriptor; ...@@ -27,6 +27,7 @@ module gst.mpegts.ExtendedEventDescriptor;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.PtrArray; private import glib.PtrArray;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.ExtendedEventItem; ...@@ -26,6 +26,7 @@ module gst.mpegts.ExtendedEventItem;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -26,6 +26,7 @@ module gst.mpegts.ISO639LanguageDescriptor; ...@@ -26,6 +26,7 @@ module gst.mpegts.ISO639LanguageDescriptor;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gst.mpegts.c.functions; private import gst.mpegts.c.functions;
public import gst.mpegts.c.types; public import gst.mpegts.c.types;
private import gtkd.Loader; private import gtkd.Loader;
......
...@@ -27,6 +27,7 @@ module gstreamer.BufferPool; ...@@ -27,6 +27,7 @@ module gstreamer.BufferPool;
private import glib.ConstructionException; private import glib.ConstructionException;
private import glib.MemorySlice; private import glib.MemorySlice;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gobject.ObjectG; private import gobject.ObjectG;
private import gstreamer.AllocationParams; private import gstreamer.AllocationParams;
private import gstreamer.Allocator; private import gstreamer.Allocator;
......
...@@ -26,6 +26,7 @@ module gstreamer.Caps; ...@@ -26,6 +26,7 @@ module gstreamer.Caps;
private import glib.ConstructionException; private import glib.ConstructionException;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gobject.ObjectG; private import gobject.ObjectG;
private import gobject.Value; private import gobject.Value;
private import gstreamer.CapsFeatures; private import gstreamer.CapsFeatures;
......
...@@ -26,6 +26,7 @@ module gstreamer.CapsFeatures; ...@@ -26,6 +26,7 @@ module gstreamer.CapsFeatures;
private import glib.ConstructionException; private import glib.ConstructionException;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gobject.ObjectG; private import gobject.ObjectG;
private import gstreamer.c.functions; private import gstreamer.c.functions;
public import gstreamer.c.types; public import gstreamer.c.types;
......
...@@ -26,6 +26,7 @@ module gstreamer.Context; ...@@ -26,6 +26,7 @@ module gstreamer.Context;
private import glib.ConstructionException; private import glib.ConstructionException;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gobject.ObjectG; private import gobject.ObjectG;
private import gstreamer.Structure; private import gstreamer.Structure;
private import gstreamer.c.functions; private import gstreamer.c.functions;
......
...@@ -27,6 +27,7 @@ module gstreamer.DateTime; ...@@ -27,6 +27,7 @@ module gstreamer.DateTime;
private import glib.ConstructionException; private import glib.ConstructionException;
private import glib.DateTime : GLibDateTime = DateTime; private import glib.DateTime : GLibDateTime = DateTime;
private import glib.Str; private import glib.Str;
private import glib.c.functions;
private import gobject.ObjectG; private import gobject.ObjectG;
private import gstreamer.c.functions; private import gstreamer.c.functions;
public import gstreamer.c.types; public import gstreamer.c.types;
...@@ -103,35 +104,6 @@ public class DateTime ...@@ -103,35 +104,6 @@ public class DateTime
this(p); //, true); this(p); //, true);
} }
/**
* Creates a new GstDateTime using the time since Jan 1, 1970 specified by
* secs.
*
* Params:
* secs = Seconds from the Unix epoch
* utc = If true use utc else use the local timezone.
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this (long secs, bool utc)
{
GstDateTime* p;
if ( utc )
{
p = gst_date_time_new_from_unix_epoch_utc(secs);
}
else
{
p = gst_date_time_new_from_unix_epoch_local_time(secs);
}
if(p is null)
{
throw new ConstructionException("null returned by gst_date_time_new_from_unix_epoch_local_time(secs)");
}
this(p); //, true);
}
/** /**
*/ */
...@@ -243,7 +215,7 @@ public class DateTime ...@@ -243,7 +215,7 @@ public class DateTime
/** /**
* Creates a new #GstDateTime using the time since Jan 1, 1970 specified by * Creates a new #GstDateTime using the time since Jan 1, 1970 specified by
* @usecs. The #GstDateTime is in the local timezone. * @usecs. The #GstDateTime is in UTC.
* *
* Params: * Params:
* usecs = microseconds from the Unix epoch * usecs = microseconds from the Unix epoch
...@@ -256,11 +228,11 @@ public class DateTime ...@@ -256,11 +228,11 @@ public class DateTime
*/ */
public this(long usecs) public this(long usecs)
{ {
auto __p = gst_date_time_new_from_unix_epoch_local_time_usecs(usecs); auto __p = gst_date_time_new_from_unix_epoch_utc_usecs(usecs);
if(__p is null) if(__p is null)
{ {
throw new ConstructionException("null returned by new_from_unix_epoch_local_time_usecs"); throw new ConstructionException("null returned by new_from_unix_epoch_utc_usecs");
} }
this(cast(GstDateTime*) __p); this(cast(GstDateTime*) __p);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment