#pragma once

#include <gtk/gtk.h>
#include <jansson.h>

G_BEGIN_DECLS

void         icon_press_cb              (GtkEntry       *entry,
                                         gint            position,
                                         GdkEventButton *event,
                                         gpointer        data);

guint        get_row_number_from_iter   (GtkListStore   *list_store,
                                         GtkTreeIter     iter);

json_t      *build_json_obj             (const gchar *type,
                                         const gchar *acc_label,
                                         const gchar *acc_iss,
                                         const gchar *acc_key,
                                         gint         digits,
                                         const gchar *algo,
                                         gint         period,
                                         gint64       ctr);

void send_ok_cb                         (GtkWidget *entry,
                                         gpointer   user_data);

G_END_DECLS
