18 lines
380 B
C#
18 lines
380 B
C#
using System;
|
|
|
|
namespace Foodsoft.Alpm
|
|
{
|
|
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));
|
|
}
|
|
}
|
|
}
|
|
} |