-
Notifications
You must be signed in to change notification settings - Fork 48
/
imports.h
49 lines (35 loc) · 1.41 KB
/
imports.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include <gtk/gtk.h>
#include "data.h"
G_BEGIN_DECLS
#define ANDOTP_IMPORT_ACTION_NAME "import_andotp"
#define ANDOTP_IMPORT_PLAIN_ACTION_NAME "import_andotp_plain"
#define FREEOTPPLUS_IMPORT_ACTION_NAME "import_freeotpplus"
#define AEGIS_IMPORT_ACTION_NAME "import_aegis"
#define AEGIS_IMPORT_ENC_ACTION_NAME "import_aegis_enc"
#define AUTHPRO_IMPORT_ENC_ACTION_NAME "import_authpro_enc"
#define AUTHPRO_IMPORT_PLAIN_ACTION_NAME "import_authpro_plain"
#define TWOFAS_IMPORT_ENC_ACTION_NAME "import_twofas_enc"
#define TWOFAS_IMPORT_PLAIN_ACTION_NAME "import_twofas_plain"
#define GOOGLE_MIGRATION_FILE_ACTION_NAME "import_google_qr_file"
#define GOOGLE_MIGRATION_WEBCAM_ACTION_NAME "import_google_qr_webcam"
typedef struct otp_object_t {
gchar *type;
gchar *algo;
guint32 digits;
union {
guint32 period;
guint64 counter;
};
gchar *account_name;
gchar *issuer;
gchar *secret;
} otp_t;
void select_file_cb (GSimpleAction *simple,
GVariant *parameter,
gpointer user_data);
gchar *update_db_from_otps (GSList *otps,
AppData *app_data);
void free_otps_gslist (GSList *otps,
guint list_len);
G_END_DECLS