#ifndef options_h #define options_h /* Camicro - Microscope camera viewer. * * Copyright (C) 2019 Nicolas Schodet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Contact : * Web: http://ni.fr.eu.org/ * Email: */ #include #include /* Runtime options. */ struct options { /* Image width, -1 for default. */ int width; /* Image height, -1 for default. */ int height; /* Exposure in ms, -1.0 for default. */ double exposure_ms; /* Digital gain after image acquisition, -1.0 for default. */ double gain; /* Number of frame to dump. */ int count; /* Do not convert image. */ bool raw; /* Output file name or pattern. This should include a printf like pattern * (%d) used to name the files. */ const char *out; }; /* Add options to application. */ void options_add(GApplication *app); /* Handle options. */ gint options_handle(GApplication *app, GVariantDict *options_dict); #endif /* options_h */