checkpoint for real

This commit is contained in:
2020-04-27 12:34:56 -04:00
parent 6ed92261ec
commit c1618deb83
31 changed files with 1429 additions and 626 deletions

18
API.cs
View File

@@ -1,4 +1,18 @@
$HEADER$namespace $NAMESPACE$
using System;
namespace Foodsoft.Alpm
{
public class $CLASS$ {$END$}
public static class API
{
public static readonly string Version = alpm.alpm_version();
internal static void WrapError(SafeAlpmHandle h, Func<int> f)
{
var err = f();
if (err != 0)
{
throw new Exception(alpm.alpm_errno(h));
}
}
}
}