* Version $Id$
*/
/*
- Copyright (C) 2000-2005 Kern Sibbald
+ Copyright (C) 2000-2006 Kern Sibbald
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
int authenticate_filed(JCR *jcr);
/* From autochanger.c */
+bool init_autochangers();
int autoload_device(DCR *dcr, int writing, BSOCK *dir);
bool autochanger_cmd(DCR *dcr, BSOCK *dir, const char *cmd);
bool unload_autochanger(DCR *dcr, int loaded);
/* From dev.c */
DEVICE *init_dev(JCR *jcr, DEVRES *device);
off_t lseek_dev(DEVICE *dev, off_t offset, int whence);
-int open_first_part(DCR *dcr, int mode);
-int open_next_part(DCR *dcr);
bool can_open_mounted_dev(DEVICE *dev);
bool truncate_dev(DCR *dcr);
void term_dev(DEVICE *dev);
uint32_t dev_file(DEVICE *dev);
/* From dvd.c */
+int dvd_open_next_part(DCR *dcr);
+bool dvd_write_part(DCR *dcr);
bool dvd_close_job(DCR *dcr);
bool mount_dev(DEVICE* dev, int timeout);
bool unmount_dev(DEVICE* dev, int timeout);
void create_restore_volume_list(JCR *jcr);
/* From record.c */
-const char *FI_to_ascii(int fi);
-const char *stream_to_ascii(int stream, int fi);
+const char *FI_to_ascii(char *buf, int fi);
+const char *stream_to_ascii(char *buf, int stream, int fi);
bool write_record_to_block(DEV_BLOCK *block, DEV_RECORD *rec);
bool can_write_record_to_block(DEV_BLOCK *block, DEV_RECORD *rec);
bool read_record_from_block(DEV_BLOCK *block, DEV_RECORD *rec);
void free_volume_list();
void list_volumes(BSOCK *user);
bool is_volume_in_use(DCR *dcr);
+void send_drive_reserve_messages(JCR *jcr, BSOCK *user);
/* From spool.c */