// SPDX-License-Identifier: GPL-3.0-or-later
/*
 * gui.h - GTK 3 user interface for GNUtrition
 *
 * Copyright (C) 2026 Free Software Foundation, Inc.
 *
 * Author: Jason Self <jself@gnu.org>
 */

#ifndef GUI_H
#define GUI_H

#include <sqlite3.h>

/* Run the GTK 3 graphical interface.
   FOOD_DB is the USDA food database; LOG_DB is the user's food log.
   CALORIES is the initial daily calorie target.
   ARGC and ARGV are passed to gtk_init.
   Returns 0 on normal exit, -1 on error.  */
int gui_run (sqlite3 *food_db, sqlite3 *log_db, int calories,
             int argc, char **argv);

#endif /* GUI_H */
