db_dictlog_c.x revision 2
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A%#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A%
/* A log entry that describes an action to be performed and its parameters. */ 2N/A%
char *
table_name;
/* table_name supplied with action (if any) */ 2N/A%
/*Constructor: Create an empty log entry, with no table_name and not object */ 2N/A%
/*Constructor: Create a log entry using the given parameters. Note that 2N/A% pointers to table_name and table_object are simply assigned, not copied. */ 2N/A%
/* Print this log entry to stdout */ 2N/A%
/* Accessor: return version of log entry */ 2N/A%
/* Accessor: return pointer to action of log entry */ 2N/A%
/* Accessor: return pointer to table_name part of log entry */ 2N/A%
/* Predicate: return whether log entry is complete and not truncated */ 2N/A%
/* Accessor: return pointer to copy of object in log entry */ 2N/A%
/* Accessor: return pointer to to next log entry */ 2N/A%
/* Accessor: return pointer to copy of object in log entry */ 2N/A%
/* Constructor: create log file; default is PICKLE_READ mode. */ 2N/A%
/* Execute given function 'func' on log. 2N/A% function takes as arguments: pointer to log entry, character pointer to 2N/A% another argument, and pointer to an integer, which is used as a counter. 2N/A% 'func' should increment this value for each successful application. 2N/A% The log is traversed until either 'func' returns FALSE, or when the log 2N/A% is exhausted. The second argument to 'execute_on_log' is passed as the 2N/A% second argument to 'func'. The third argument, 'clean' determines whether 2N/A% the log entry is deleted after the function has been applied. 2N/A% Returns the number of times that 'func' incremented its third argument. */ 2N/A%
/* Print contents of log file to stdout */ 2N/A%
/*Append given log entry to log. */ 2N/A%
/* Return the next element in current log; return NULL if end of log or error. 2N/A% Log must have been opened for READ. */ 2N/A% * Locking methods. Protect the db_dictlog as well as db_dictlog_entries 2N/A% * hanging off of it. 2N/A%#
endif /* _DB_DICTLOG_H */