~digisite-dev/digisite/head

« back to all changes in this revision

Viewing changes to mobile-gui/src/global.h

  • Committer: Yann Hamon
  • Date: 2009-02-23 11:33:20 UTC
  • Revision ID: yann.hamon@thehumanjourney.net-20090223113320-k9qbb7bnumgjqkp5
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *            global.h
 
3
 *
 
4
 *  Copyright  2009  Benjamin Ducke, OA Digital
 
5
 *  <benjamin.ducke@oxfordarch.co.uk>>
 
6
 ****************************************************************************/
 
7
 
 
8
/*
 
9
 * This program is free software; you can redistribute it and/or modify
 
10
 * it under the terms of the GNU General Public License as published by
 
11
 * the Free Software Foundation; either version 2 of the License, or
 
12
 * (at your option) any later version.
 
13
 *
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU Library General Public License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public License
 
20
 * along with this program; if not, write to the Free Software
 
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 
22
 */
 
23
 
 
24
 /*
 
25
 
 
26
 Purpose: Definitions for globally used symbols.
 
27
 
 
28
 */
 
29
 
 
30
 
 
31
#ifndef GLOBAL_H_INCLUDED
 
32
#define GLOBAL_H_INCLUDED
 
33
 
 
34
#ifdef LOCAL
 
35
#define EXTERN
 
36
#else
 
37
#define EXTERN extern
 
38
#endif
 
39
 
 
40
#define VERSION 0
 
41
#define SUBVERSION 1
 
42
#define PRGNAME "OA Digital Context Recording System"
 
43
 
 
44
/* we define this so the db-easy stuff knows what's available */
 
45
#define RUN_UNDER_GTK_GUI
 
46
 
 
47
#define MAXSTR 4096
 
48
 
 
49
#include <sqlite3.h>
 
50
#include "db_interface.h"
 
51
 
 
52
typedef struct {
 
53
    /* system options */
 
54
    int configured;
 
55
    int argc;
 
56
    char **argv;
 
57
    char *name;
 
58
    int version;
 
59
    int subversion;
 
60
} sys_options;
 
61
 
 
62
/* database management options */
 
63
/* NOTE: defined in ../db-easy/src/db_interface.h */
 
64
 
 
65
/* options for customizing the user interface */
 
66
typedef struct {
 
67
        int configured; /* indicates whether the GUI has been fully configured yet */
 
68
        int compact_mode;
 
69
        int managed;
 
70
        int xres;
 
71
        int yres;
 
72
} gui_options;
 
73
 
 
74
/* program options super structure */
 
75
typedef struct {
 
76
        sys_options sys;
 
77
        db_options db;
 
78
        gui_options gui;
 
79
} prg_options;
 
80
 
 
81
 
 
82
#endif // GLOBAL_H_INCLUDED