File:  [GNUtrition Sources] / gnutrition / ui.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri May 8 03:23:59 2026 UTC (12 days, 11 hours ago) by asm
Branches: MAIN
CVS tags: HEAD
Migration from Git with 0.33rc1 changes.

// 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>