summaryrefslogtreecommitdiff
path: root/backend/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/utils.h')
-rw-r--r--backend/utils.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/backend/utils.h b/backend/utils.h
index 88e9073..ea3635b 100644
--- a/backend/utils.h
+++ b/backend/utils.h
@@ -6,8 +6,6 @@
#pragma once
#include <curl/curl.h>
-#include <pk-backend.h>
-#include <pk-backend-job.h>
namespace slack {
@@ -17,11 +15,23 @@ struct JobData
CURL *curl;
};
+enum class Info
+{
+ // Error.
+ unknown,
+ // Installed in the same version.
+ installed,
+ // A different version is installed.
+ updating
+ // Available, but not installed.
+ installing,
+};
+
CURLcode get_file (CURL **curl, char *source_url, char *dest);
char **split_package_name (const char *pkg_filename);
-PkInfoEnum is_installed (const char *pkg_fullname);
+Info is_installed (const char *pkg_fullname);
extern "C" {