Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-10-11 14:04:28 -0500
committerDan McGee <dan@archlinux.org>2009-10-11 14:42:04 -0500
commit3bc8c28ce3b7f06203842abbf8a8c5e0d21886e9 (patch)
tree772cd0b43ae15b6aac3aaf5e39bb6ef54f6b086c /lib/libalpm/handle.c
parent145103aacc57d35579315bfbf7c5607c590af194 (diff)
Add missing get_usedelta() method
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index a503baea..5cbf363a 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -223,6 +223,15 @@ const char SYMEXPORT *alpm_option_get_arch()
return handle->arch;
}
+int SYMEXPORT alpm_option_get_usedelta()
+{
+ if (handle == NULL) {
+ pm_errno = PM_ERR_HANDLE_NULL;
+ return -1;
+ }
+ return handle->usedelta;
+}
+
pmdb_t SYMEXPORT *alpm_option_get_localdb()
{
if (handle == NULL) {