2 * Bacula Catalog Database Delete record interface routines
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
11 * Kern Sibbald, January MMI
16 Bacula® - The Network Backup Solution
18 Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
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
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.
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
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.
44 /* The following is necessary so that we do not include
45 * the dummy external definition of DB.
47 #define __SQL_C /* indicate that this is sql.c */
55 /* Forward referenced functions */
57 /* -----------------------------------------------------------------------
59 * Bacula specific defines and subroutines
61 * -----------------------------------------------------------------------
66 * Delete a Pool record given the Name
69 * the number of records deleted on success
71 int db_delete_pool_record(JCR *jcr, B_DB *mdb, POOL_DBR *pr)
76 int db_delete_media_record(JCR *jcr, B_DB *mdb, MEDIA_DBR *mr)
81 #endif /* HAVE_BACULA_DB */