// SPDX-License-Identifier: GPL-3.0-or-later
/*
* $Id: ui.h,v 1.1 2026/05/08 03:23:59 asm Exp $
*
* ui.h - ncurses user interface for GNUtrition
*
* Copyright (C) 2026 Free Software Foundation, Inc.
*
* Author: Jason Self <jself@gnu.org>
*/
#ifndef UI_H
#define UI_H
#include <sqlite3.h>
/* Run the interactive ncurses interface.
FOOD_DB is the USDA food database; LOG_DB is the user's food log.
CALORIES is the daily calorie target for the food-group budget.
Returns 0 on normal exit, -1 on error. */
int ui_run (sqlite3 *food_db, sqlite3 *log_db, int calories);
#endif /* UI_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>