aboutsummaryrefslogtreecommitdiffstats
path: root/src/r-lg2.h
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2025-02-10 22:17:48 +0300
committerJoursoir <chat@joursoir.net>2025-02-10 22:19:36 +0300
commit3e937588c6fe36f5776dd1029a34132e0ec76db5 (patch)
treefa8a55bdf9b9286982ca0025dd17352610f4be5c /src/r-lg2.h
parente9a715195fbf82c9ea7d4b2d6699351468fab222 (diff)
downloadlock-password-3e937588c6fe36f5776dd1029a34132e0ec76db5.tar.gz
lock-password-3e937588c6fe36f5776dd1029a34132e0ec76db5.tar.bz2
lock-password-3e937588c6fe36f5776dd1029a34132e0ec76db5.zip
add git feature
It's available at compile-time
Diffstat (limited to 'src/r-lg2.h')
-rw-r--r--src/r-lg2.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/r-lg2.h b/src/r-lg2.h
new file mode 100644
index 0000000..640a2c6
--- /dev/null
+++ b/src/r-lg2.h
@@ -0,0 +1,22 @@
+#ifndef LPASS_RLG2_H
+#define LPASS_RLG2_H
+
+#ifdef LIGBIT
+
+#include <git2.h>
+
+typedef enum {
+ GIT_ACTION_INSERT,
+ GIT_ACTION_GENERATE,
+ GIT_ACTION_EDIT,
+ GIT_ACTION_DELETE,
+ GIT_ACTION_MOVE
+} git_action_t;
+
+int lg2_open_repo(const char *path);
+int lg2_close_repo();
+int lg2_simple_action(git_action_t action, int is_overwrite, const char *path, const char *new_path);
+
+#endif /* LIGBIT */
+
+#endif /* LPASS_RLG2_H */