aboutsummaryrefslogtreecommitdiff
path: root/plugins/openpgp/src/gpgme_fix.c
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2023-06-04 09:24:16 +0200
committerfiaxh <fiaxh@users.noreply.github.com>2023-10-06 15:25:12 +0200
commite2d801b5f74b60c38a75310066c48468c8a4bc93 (patch)
tree169183325003f0478f0f61620fb9cef12b932f03 /plugins/openpgp/src/gpgme_fix.c
parentdd0038f5e2916b21f58d83dabe9675994635e41f (diff)
downloaddino-e2d801b5f74b60c38a75310066c48468c8a4bc93.tar.gz
dino-e2d801b5f74b60c38a75310066c48468c8a4bc93.zip
Merge `gpgme-vala` into `openpgp` plugin
There's no reason for it to be a statically linked library anymore, it can be directly compiled into the plugin.
Diffstat (limited to 'plugins/openpgp/src/gpgme_fix.c')
-rw-r--r--plugins/openpgp/src/gpgme_fix.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/openpgp/src/gpgme_fix.c b/plugins/openpgp/src/gpgme_fix.c
new file mode 100644
index 00000000..bf457a6c
--- /dev/null
+++ b/plugins/openpgp/src/gpgme_fix.c
@@ -0,0 +1,12 @@
+#include <gpgme_fix.h>
+
+GRecMutex gpgme_global_mutex = {0};
+
+gpgme_key_t gpgme_key_ref_vapi (gpgme_key_t key) {
+ gpgme_key_ref(key);
+ return key;
+}
+gpgme_key_t gpgme_key_unref_vapi (gpgme_key_t key) {
+ gpgme_key_unref(key);
+ return key;
+}