/*
* $Id: journal.h,v 1.3 2025/03/09 19:14:25 snw Exp $
* Function prototypes, structs, and macros for FreeM
* journaling implementation
*
*
* Author: Serena Willis <snw@coherent-logic.com>
* Copyright (C) 1998 MUG Deutschland
* Copyright (C) 2020, 2025 Coherent Logic Development LLC
*
*
* This file is part of FreeM.
*
* FreeM is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FreeM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero Public License for more details.
*
* You should have received a copy of the GNU Affero Public License
* along with FreeM. If not, see <https://www.gnu.org/licenses/>.
*
* $Log: journal.h,v $
* Revision 1.3 2025/03/09 19:14:25 snw
* First phase of REUSE compliance and header reformat
*
*
* SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
* SPDX-License-Identifier: AGPL-3.0-or-later
**/
#ifndef _JOURNAL_H
# define _JOURNAL_H
#include <time.h>
#include <limits.h>
#if !defined(PATH_MAX) && defined(_SCO_DS)
# define PATH_MAX 4096
#endif
#if !defined(PATH_MAX) && defined(__gnu_hurd__)
# define PATH_MAX 1024
#endif
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
# include <sys/syslimits.h>
#endif
#include "jnldefs.h"
extern short jnl_enabled;
extern short jnl_init(char *jnlfile, char *hostid, unsigned long jnl_cut_threshold, unsigned long tran_id);
extern short jnl_ent_init(jnl_ent_t *entry);
extern short jnl_ent_write(short action, char *key, char *data);
#endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>