4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
25 * Copyright (c) 1988-1992 Sun Microsystems Inc
26 * All Rights Reserved.
29 #pragma ident "%Z%%M% %I% %E% SMI"
33 #include "db_headers.h"
34 #include "db_log_entry.h"
37 extern void print_entry(entryp
, entry_object
*);
40 * Constructor: Create a log entry using the given parameters. Note that
41 * pointers to db_query and entry_object are simply assigned, not copied.
43 db_log_entry::db_log_entry(db_action a
, vers
* v
, db_query
*q
,
54 db_log_entry::~db_log_entry()
56 /* we might not have allocated these ourselves, so we cannot delete them */
57 // if (query) delete query;
58 // if (object) free_entry(object);
61 /* prints a line from the journal */
73 printf("action(%d): ", action
);
77 aversion
.print(stdout
);
82 printf("no query!\n");
85 print_entry(0, object
);
87 printf("no object\n");
89 bversion
.print(stdout
);