diff options
author | Joshua Colp <jcolp@digium.com> | 2016-05-23 18:04:07 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-05-23 18:04:07 -0500 |
commit | cab97fd9056e1dd99f4d6e0883c128131467df44 (patch) | |
tree | 82045e0bc958deb5662d14679c89d02845b5c89b /res/stasis_recording/stored.c | |
parent | c20e560516239dc32c93bd3484abad4fa42045f5 (diff) | |
parent | e773e3a9bbaf378d53647e4bac3ffcd61afb4ae6 (diff) |
Merge "ARI: Add the ability to download the media associated with a stored recording"
Diffstat (limited to 'res/stasis_recording/stored.c')
-rw-r--r-- | res/stasis_recording/stored.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/res/stasis_recording/stored.c b/res/stasis_recording/stored.c index acabb65bb..50232c427 100644 --- a/res/stasis_recording/stored.c +++ b/res/stasis_recording/stored.c @@ -62,6 +62,24 @@ const char *stasis_app_stored_recording_get_file( return recording->file; } +const char *stasis_app_stored_recording_get_filename( + struct stasis_app_stored_recording *recording) +{ + if (!recording) { + return NULL; + } + return recording->file_with_ext; +} + +const char *stasis_app_stored_recording_get_extension( + struct stasis_app_stored_recording *recording) +{ + if (!recording) { + return NULL; + } + return recording->format; +} + /*! * \brief Split a path into directory and file, resolving canonical directory. * |