]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/bdb_list.c
ebl Add '*' when volume is online when displaying volume list in restore.
[bacula/bacula] / bacula / src / cats / bdb_list.c
1 /*
2  * Bacula Catalog Database List records interface routines
3  *
4  * Bacula Catalog Database routines written specifically
5  *  for Bacula.  Note, these routines are VERY dumb and
6  *  do not provide all the functionality of an SQL database.
7  *  The purpose of these routines is to ensure that Bacula
8  *  can limp along if no real database is loaded on the
9  *  system.
10  *
11  *    Kern Sibbald, January MMI
12  *
13  *    Version $Id$
14  */
15 /*
16    Bacula® - The Network Backup Solution
17
18    Copyright (C) 2001-2006 Free Software Foundation Europe e.V.
19
20    The main author of Bacula is Kern Sibbald, with contributions from
21    many others, a complete list can be found in the file AUTHORS.
22    This program is Free Software; you can redistribute it and/or
23    modify it under the terms of version two of the GNU General Public
24    License as published by the Free Software Foundation and included
25    in the file LICENSE.
26
27    This program is distributed in the hope that it will be useful, but
28    WITHOUT ANY WARRANTY; without even the implied warranty of
29    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30    General Public License for more details.
31
32    You should have received a copy of the GNU General Public License
33    along with this program; if not, write to the Free Software
34    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
35    02110-1301, USA.
36
37    Bacula® is a registered trademark of Kern Sibbald.
38    The licensor of Bacula is the Free Software Foundation Europe
39    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
40    Switzerland, email:ftf@fsfeurope.org.
41 */
42
43
44 /* The following is necessary so that we do not include
45  * the dummy external definition of DB.
46  */
47 #define __SQL_C                       /* indicate that this is sql.c */
48
49 #include "bacula.h"
50 #include "cats.h"
51 #include "bdb.h"
52
53 #ifdef HAVE_BACULA_DB
54
55 /* Forward referenced functions */
56
57 /* -----------------------------------------------------------------------
58  *
59  *   Bacula specific defines and subroutines
60  *
61  * -----------------------------------------------------------------------
62  */
63
64 /*
65  * Submit general SQL query
66  */
67 int db_list_sql_query(JCR *jcr, B_DB *mdb, const char *query, DB_LIST_HANDLER *sendit,
68                       void *ctx, int verbose)
69 {
70    return 0;
71 }
72
73
74 /*
75  * List all the pool records
76  */
77 void db_list_pool_records(JCR *jcr, B_DB *mdb, DB_LIST_HANDLER *sendit, void *ctx)
78 {
79    return;
80 }
81
82
83 /*
84  * List Media records
85  */
86 void db_list_media_records(JCR *jcr, B_DB *mdb, MEDIA_DBR *mdbr,
87                            DB_LIST_HANDLER *sendit, void *ctx)
88 {
89    return;
90 }
91
92 void db_list_jobmedia_records(JCR *jcr, B_DB *mdb, uint32_t JobId,
93                               DB_LIST_HANDLER *sendit, void *ctx)
94 {
95    return;
96 }
97
98
99 /*
100  * List Job records
101  */
102 void db_list_job_records(JCR *jcr, B_DB *mdb, JOB_DBR *jr,
103                          DB_LIST_HANDLER *sendit, void *ctx)
104 {
105    return;
106 }
107
108
109 /*
110  * List Job Totals
111  */
112 void db_list_job_totals(JCR *jcr, B_DB *mdb, JOB_DBR *jr,
113                         DB_LIST_HANDLER *sendit, void *ctx)
114 {
115    return;
116 }
117
118
119
120 void db_list_files_for_job(JCR *jcr, B_DB *mdb, uint32_t jobid, DB_LIST_HANDLER *sendit, void *ctx)
121 { }
122
123 void db_list_client_records(JCR *jcr, B_DB *mdb, DB_LIST_HANDLER *sendit, void *ctx)
124 { }
125
126 int db_list_sql_query(JCR *jcr, B_DB *mdb, const char *query, DB_LIST_HANDLER *sendit,
127                       void *ctx, int verbose, e_list_type type)
128 {
129    return 0;
130 }
131
132 void
133 db_list_pool_records(JCR *jcr, B_DB *mdb, DB_LIST_HANDLER *sendit, void *ctx, e_list_type type)
134 { }
135
136 void
137 db_list_media_records(JCR *jcr, B_DB *mdb, MEDIA_DBR *mdbr,
138                       DB_LIST_HANDLER *sendit, void *ctx, e_list_type type)
139 { }
140
141 void db_list_jobmedia_records(JCR *jcr, B_DB *mdb, uint32_t JobId,
142                               DB_LIST_HANDLER *sendit, void *ctx, e_list_type type)
143 { }
144
145 void
146 db_list_job_records(JCR *jcr, B_DB *mdb, JOB_DBR *jr, DB_LIST_HANDLER *sendit,
147                     void *ctx, e_list_type type)
148 { }
149
150 void
151 db_list_client_records(JCR *jcr, B_DB *mdb, DB_LIST_HANDLER *sendit, void *ctx, e_list_type type)
152 { }
153
154
155
156
157 #endif /* HAVE_BACULA_DB */