-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #972 from gircore/update-dependencies
Update dependencies
- Loading branch information
Showing
22 changed files
with
489 additions
and
22 deletions.
There are no files selected for viewing
Submodule gir-files
updated
from 1714da to 3bfb2d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/Generation/Generator/Renderer/Internal/Parameter/Converter/UnionArray.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
namespace Generator.Renderer.Internal.Parameter; | ||
|
||
internal class UnionArray : ParameterConverter | ||
{ | ||
public bool Supports(GirModel.AnyType anyType) | ||
{ | ||
return anyType.IsArray<GirModel.Union>(); | ||
} | ||
|
||
public RenderableParameter Convert(GirModel.Parameter parameter) | ||
{ | ||
if (parameter.AnyTypeOrVarArgs.AsT0.AsT1.IsPointer) | ||
return PointerArray(parameter); | ||
|
||
return DataArray(parameter); | ||
} | ||
|
||
private static RenderableParameter PointerArray(GirModel.Parameter parameter) | ||
{ | ||
return new RenderableParameter( | ||
Attribute: string.Empty, | ||
Direction: string.Empty, | ||
NullableTypeName: $"ref {Model.Type.Pointer}", | ||
Name: Model.Parameter.GetName(parameter) | ||
); | ||
} | ||
|
||
private static RenderableParameter DataArray(GirModel.Parameter parameter) | ||
{ | ||
var union = (GirModel.Union) parameter.AnyTypeOrVarArgs.AsT0.AsT1.AnyType.AsT0; | ||
|
||
return new RenderableParameter( | ||
Attribute: string.Empty, | ||
Direction: string.Empty, | ||
NullableTypeName: Model.Union.GetFullyQualifiedInternalStructName(union) + "[]", | ||
Name: Model.Parameter.GetName(parameter) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Project> | ||
<ItemGroup> | ||
<PackageReference Include="Serilog" Version="3.0.1" /> | ||
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" /> | ||
<PackageReference Include="Serilog" Version="3.1.1" /> | ||
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.0" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
|
||
namespace Gdk.Internal; | ||
|
||
public partial class DragSurfaceSizeHandle | ||
{ | ||
public partial DragSurfaceSizeOwnedHandle OwnedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public partial DragSurfaceSizeUnownedHandle UnownedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public partial class DragSurfaceSizeOwnedHandle | ||
{ | ||
public static partial DragSurfaceSizeOwnedHandle FromUnowned(IntPtr ptr) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override partial bool ReleaseHandle() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
|
||
namespace Gst.Internal; | ||
|
||
public partial class DebugMessageHandle | ||
{ | ||
public partial DebugMessageOwnedHandle OwnedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public partial DebugMessageUnownedHandle UnownedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public partial class DebugMessageOwnedHandle | ||
{ | ||
public static partial DebugMessageOwnedHandle FromUnowned(IntPtr ptr) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override partial bool ReleaseHandle() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Gst.Internal; | ||
|
||
public partial class PollHandle | ||
{ | ||
public partial PollOwnedHandle OwnedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public partial PollUnownedHandle UnownedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public partial class PollOwnedHandle | ||
{ | ||
[DllImport(ImportResolver.Library, EntryPoint = "gst_poll_free")] | ||
private static extern void Free(IntPtr set); | ||
|
||
public static partial PollOwnedHandle FromUnowned(IntPtr ptr) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override partial bool ReleaseHandle() | ||
{ | ||
Free(handle); | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace GstAudio.Internal; | ||
|
||
public partial class AudioChannelMixerHandle | ||
{ | ||
public partial AudioChannelMixerOwnedHandle OwnedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public partial AudioChannelMixerUnownedHandle UnownedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public partial class AudioChannelMixerOwnedHandle | ||
{ | ||
[DllImport(ImportResolver.Library, EntryPoint = "gst_audio_channel_mixer_free")] | ||
private static extern void Free(IntPtr data); | ||
|
||
public static partial AudioChannelMixerOwnedHandle FromUnowned(IntPtr ptr) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override partial bool ReleaseHandle() | ||
{ | ||
Free(handle); | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace GstAudio.Internal; | ||
|
||
public partial class AudioQuantizeHandle | ||
{ | ||
public partial AudioQuantizeOwnedHandle OwnedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public partial AudioQuantizeUnownedHandle UnownedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public partial class AudioQuantizeOwnedHandle | ||
{ | ||
[DllImport(ImportResolver.Library, EntryPoint = "gst_audio_quantize_free")] | ||
private static extern void Free(IntPtr data); | ||
|
||
public static partial AudioQuantizeOwnedHandle FromUnowned(IntPtr ptr) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override partial bool ReleaseHandle() | ||
{ | ||
Free(handle); | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace GstAudio.Internal; | ||
|
||
public partial class AudioResamplerHandle | ||
{ | ||
public partial AudioResamplerOwnedHandle OwnedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public partial AudioResamplerUnownedHandle UnownedCopy() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
|
||
public partial class AudioResamplerOwnedHandle | ||
{ | ||
[DllImport(ImportResolver.Library, EntryPoint = "gst_audio_resampler_free")] | ||
private static extern void Free(IntPtr data); | ||
|
||
public static partial AudioResamplerOwnedHandle FromUnowned(IntPtr ptr) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
protected override partial bool ReleaseHandle() | ||
{ | ||
Free(handle); | ||
return true; | ||
} | ||
} |
Oops, something went wrong.