]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/protos.h
- Require 5 arguments to mtx-changer except list and slots
[bacula/bacula] / bacula / src / stored / protos.h
index 3cac3a8c31d7a9d19c64c8aeea47815d87d76391..a7f40440917db73506219013a2598dd8d6f8f1ea 100644 (file)
@@ -8,7 +8,7 @@
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
-   version 2 as ammended with additional clauses defined in the
+   version 2 as amended with additional clauses defined in the
    file LICENSE in the main source directory.
 
    This program is distributed in the hope that it will be useful,
@@ -52,6 +52,7 @@ int     authenticate_filed(JCR *jcr);
 int      autoload_device(DCR *dcr, int writing, BSOCK *dir);
 bool     autochanger_cmd(DCR *dcr, BSOCK *dir, const char *cmd);
 char    *edit_device_codes(DCR *dcr, char *omsg, const char *imsg, const char *cmd);
+int      get_autochanger_loaded_slot(DCR *dcr);
 
 /* From block.c */
 void    dump_block(DEV_BLOCK *b, const char *msg);
@@ -80,10 +81,10 @@ void    display_tape_error_status(JCR *jcr, DEVICE *dev);
 /* 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(DEVICE *dev, int mode);
-int      open_next_part(DEVICE *dev);
+int      open_first_part(DCR *dcr, int mode);
+int      open_next_part(DCR *dcr);
 bool     can_open_mounted_dev(DEVICE *dev);
-bool     truncate_dev(DEVICE *dev);
+bool     truncate_dev(DCR *dcr);
 void     term_dev(DEVICE *dev);
 char *   strerror_dev(DEVICE *dev);
 void     clrerror_dev(DEVICE *dev, int func);
@@ -118,13 +119,16 @@ bool dvd_close_job(DCR *dcr);
 bool mount_dev(DEVICE* dev, int timeout);
 bool unmount_dev(DEVICE* dev, int timeout);
 void update_free_space_dev(DEVICE *dev);
-void get_filename(DEVICE *dev, char *VolName, POOL_MEM& archive_name);
+void make_mounted_dvd_filename(DEVICE *dev, POOL_MEM &archive_name);
+void make_spooled_dvd_filename(DEVICE *dev, POOL_MEM &archive_name);
+bool truncate_dvd_dev(DCR *dcr);
+bool check_can_write_on_non_blank_dvd(DCR *dcr);
 
 /* From device.c */
 bool     open_device(DCR *dcr);
 void     close_device(DEVICE *dev);
 void     force_close_device(DEVICE *dev);
-bool     first_open_device(DEVICE *dev);
+bool     first_open_device(DCR *dcr);
 bool     fixup_device_block_write_error(DCR *dcr);
 void     _lock_device(const char *file, int line, DEVICE *dev);
 void     _unlock_device(const char *file, int line, DEVICE *dev);
@@ -134,10 +138,9 @@ void     _steal_device_lock(const char *file, int line, DEVICE *dev, bsteal_lock
 void     _give_back_device_lock(const char *file, int line, DEVICE *dev, bsteal_lock_t *hold);
 void     set_new_volume_parameters(DCR *dcr);
 void     set_new_file_parameters(DCR *dcr);
-bool     device_is_unmounted(DEVICE *dev);
+bool     is_device_unmounted(DEVICE *dev);
 void     dev_lock(DEVICE *dev);
 void     dev_unlock(DEVICE *dev);
-const char *edit_blocked_reason(DEVICE *dev);
 
 /* From dircmd.c */
 void     *handle_connection_request(void *arg);
@@ -210,13 +213,14 @@ bool read_records(DCR *dcr,
 
 /* From reserve.c */
 void    release_volume(DCR *dcr);
-VOLRES *new_volume(const char *VolumeName, DEVICE *dev);
+VOLRES *new_volume(DCR *dcr, const char *VolumeName);
 VOLRES *find_volume(const char *VolumeName);
 bool    free_volume(DEVICE *dev);
+void    free_unused_volume(DCR *dcr);
 void    create_volume_list();
 void    free_volume_list();
 void    list_volumes(BSOCK *user);
-bool    is_volume_in_use(const char *VolumeName);
+bool    is_volume_in_use(DCR *dcr);
 
 
 /* From spool.c */