File:  [GNUtrition Sources] / gnutrition / gui.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri May 8 03:23:59 2026 UTC (12 days, 12 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: gui.h,v 1.1 2026/05/08 03:23:59 asm Exp $
 *
 * 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 */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>