ARI: Add the ability to download the media associated with a stored recording
[asterisk/asterisk.git] / include / asterisk / stasis_app_recording.h
index f67c204..bded306 100644 (file)
@@ -49,6 +49,30 @@ const char *stasis_app_stored_recording_get_file(
        struct stasis_app_stored_recording *recording);
 
 /*!
+ * \brief Returns the full filename, with extension, for this recording.
+ * \since 14.0.0
+ *
+ * \param recording Recording to query.
+ *
+ * \return Absolute path to the recording file, with the extension.
+ * \return \c NULL on error
+ */
+const char *stasis_app_stored_recording_get_filename(
+       struct stasis_app_stored_recording *recording);
+
+/*!
+ * \brief Returns the extension for this recording.
+ * \since 14.0.0
+ *
+ * \param recording Recording to query.
+ *
+ * \return The extension associated with this recording.
+ * \return \c NULL on error
+ */
+const char *stasis_app_stored_recording_get_extension(
+       struct stasis_app_stored_recording *recording);
+
+/*!
  * \brief Convert stored recording info to JSON.
  *
  * \param recording Recording to convert.
@@ -80,6 +104,19 @@ struct stasis_app_stored_recording *stasis_app_stored_recording_find_by_name(
        const char *name);
 
 /*!
+ * \brief Copy a recording.
+ *
+ * \param src_recording The recording to copy
+ * \param dst The destination of the recording to make
+ * \param dst_recording If successful, the stored recording created as a result of the copy
+ *
+ * \retval 0 on success
+ * \retval Non-zero on error
+ */
+int stasis_app_stored_recording_copy(struct stasis_app_stored_recording *src_recording, const char *dst,
+       struct stasis_app_stored_recording **dst_recording);
+
+/*!
  * \brief Delete a recording from disk.
  *
  * \param recording Recording to delete.