-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GLibPorts: simplified names for native init/deinit
- Loading branch information
Showing
5 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
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,22 +1,23 @@ | ||
using System; | ||
using GLibPorts.Native; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace GLibPorts.Native { | ||
public class Utils { | ||
namespace GLibPorts { | ||
public partial class GLib { | ||
/// <summary> | ||
/// Clears up unmanaged resources used through GLib's lifetime | ||
/// </summary> | ||
public static void GLibDispose() { | ||
GLib.FileStream.DisposeStatic(); | ||
FileStream.DisposeStatic(); | ||
File.DisposeStatic(); | ||
} | ||
|
||
public static void GLibInitialize() { | ||
File.InitializeStatic(); | ||
GLib.FileStream.InitializeStatic(); | ||
FileStream.InitializeStatic(); | ||
} | ||
} | ||
} |
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