/* archives.h:
 *
 ****************************************************************
 * Copyright (C) 2003 Tom Lord
 *
 * See the file "COPYING" for further information about
 * the copyright and warranty status of this work.
 */

#ifndef INCLUDE__LIBARCH__ARCHIVES_H
#define INCLUDE__LIBARCH__ARCHIVES_H


#include "tla/libawk/relational.h"


/* automatically generated __STDC__ prototypes */
extern t_uchar * arch_archive_location_file (t_uchar * archive_name);
extern void arch_set_archive_location (t_uchar * archive_name, t_uchar * location, int force_p, int quietly_fail);
extern t_uchar * arch_archive_location (t_uchar * archive_name, int soft);
extern void arch_delete_archive_location (t_uchar * archive_name, int force_p);
extern rel_table arch_registered_archives (void);
extern t_uchar * arch_mirrored_at_name (t_uchar * archive);
extern t_uchar * arch_mirrored_from_name (t_uchar * archive);
extern t_uchar * arch_mirrored_at (t_uchar * archive);
extern t_uchar * arch_mirrored_from (t_uchar * archive);
extern t_uchar * arch_fs_archive_archive_version_path (t_uchar * archive_path);
extern t_uchar * arch_fs_archive_meta_info_path (t_uchar * archive_path);
extern t_uchar * arch_fs_archive_meta_info_item_path (t_uchar * archive_path, t_uchar * meta_info_name);
extern t_uchar * arch_fs_archive_category_path (t_uchar * archive_path, t_uchar * category);
extern t_uchar * arch_fs_archive_branch_path (t_uchar * archive_path, t_uchar * package);
extern t_uchar * arch_fs_archive_version_path (t_uchar * archive_path, t_uchar * version);
extern t_uchar * arch_fs_archive_revision_path (t_uchar * archive_path, t_uchar * revision);
extern t_uchar * arch_fs_archive_revision_log_path (t_uchar * archive_path, t_uchar * revision);
extern t_uchar * arch_fs_archive_changeset_path (t_uchar * archive_path, t_uchar * revision);
extern t_uchar * arch_fs_archive_import_path (t_uchar * archive_path, t_uchar * revision);
extern t_uchar * arch_fs_archive_cached_path (t_uchar * archive_path, t_uchar * revision);
extern t_uchar * arch_fs_archive_cached_checksum_path (t_uchar * archive_path, t_uchar * revision);
extern t_uchar * arch_fs_archive_continuation_path (t_uchar * archive_path, t_uchar * revision);
extern t_uchar * arch_fs_archive_revision_lock_unlocked_path (t_uchar * archive_path,
                                                              t_uchar * version,
                                                              t_uchar * prev_level);
extern t_uchar * arch_fs_archive_revision_lock_locked_path (t_uchar * archive_path,
                                                            t_uchar * version,
                                                            t_uchar * prev_level,
                                                            t_uchar * arch_user_id,
                                                            t_uchar * txn_id);
extern t_uchar * arch_fs_archive_revision_lock_locked_contents_path (t_uchar * archive_path,
                                                                     t_uchar * version,
                                                                     t_uchar * prev_level,
                                                                     t_uchar * arch_user_id,
                                                                     t_uchar * txn_id);
extern t_uchar * arch_fs_archive_revision_lock_broken_path (t_uchar * archive_path,
                                                            t_uchar * version,
                                                            t_uchar * prev_level);
#define ARCH_REG_FAIL_NORM             0
#define ARCH_REG_FAIL_QUIET            1
#define ARCH_REG_FAIL_NOFAIL           2


#endif  /* INCLUDE__LIBARCH__ARCHIVES_H */


/* tag: Tom Lord Sat Jan  5 15:26:10 2002 (archives.h)
 */
