]> git.sur5r.net Git - glabels/blob - src/template-history.c
Imported Upstream version 3.4.0
[glabels] / src / template-history.c
1 /*
2  *  template-history.c
3  *  Copyright (C) 2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #include <config.h>
22
23 #include "template-history.h"
24
25
26 #define MAX_TEMPLATES 5
27
28
29 /*========================================================*/
30 /* Public globals.                                        */
31 /*========================================================*/
32
33 glTemplateHistoryModel *gl_template_history = NULL;
34
35
36 /*========================================================*/
37 /* Private types.                                         */
38 /*========================================================*/
39
40 /*========================================================*/
41 /* Private globals.                                       */
42 /*========================================================*/
43
44 /*========================================================*/
45 /* Private function prototypes.                           */
46 /*========================================================*/
47
48
49 /*****************************************************************************/
50 /* Initialize template history.                                                  */
51 /*****************************************************************************/
52 void
53 gl_template_history_init (void)
54 {
55         gl_template_history = gl_template_history_model_new (MAX_TEMPLATES);
56 }
57
58
59 /*****************************************************************************/
60 /* Initialize template history with null model.                              */
61 /*****************************************************************************/
62 void
63 gl_template_history_init_null (void)
64 {
65         gl_template_history = gl_template_history_model_new_null ();
66 }
67
68
69
70 /*
71  * Local Variables:       -- emacs
72  * mode: C                -- emacs
73  * c-basic-offset: 8      -- emacs
74  * tab-width: 8           -- emacs
75  * indent-tabs-mode: nil  -- emacs
76  * End:                   -- emacs
77  */