George Joseph
7071e9d64c
media_index.c: Refactored so it doesn't cache the index
...
Testing revealed that the cache added no benefit but that it could
consume excessive memory.
Two new index related functions were created:
ast_sounds_get_index_for_file() and ast_media_index_update_for_file()
which restrict index updating to specific sound files.
The original ast_sounds_get_index() and ast_media_index_update()
calls are still available but since they no longer cache the results
internally, developers should re-use an index they may already have
instead of calling ast_sounds_get_index() repeatedly. If information
for only a single file is needed, ast_sounds_get_index_for_file()
should be called instead of ast_sounds_get_index().
The media_index directory scan code was elimininated in favor of
using the existing ast_file_read_dirs() function.
Since there's no more cache, ast_sounds_index_init now only
registers the sounds cli commands instead of generating the
initial index and subscribing to stasis format register/unregister
messages.
"sounds" is no longer a valid target for the "module reload"
command.
Both the sounds cli commands and the sounds ari resources were
refactored to only call ast_sounds_get_index() once per invocation
and to use ast_sounds_get_index_for_file() when a specific sound
file is requested.
Change-Id: I1cef327ba1b0648d85d218b70ce469ad07f4aa8d
2019-01-28 12:26:58 -07:00
..
2018-03-06 13:17:54 -06:00
2017-11-20 14:03:25 -06:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2018-12-07 09:06:08 -05:00
2018-11-26 18:43:53 +00:00
2018-11-26 18:43:53 +00:00
2017-12-22 09:23:22 -05:00
2016-10-27 09:53:55 -04:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2018-12-12 12:14:53 -05:00
2018-12-12 12:14:53 -05:00
2018-10-12 12:21:47 -05:00
2018-11-19 05:49:39 -07:00
2018-11-21 08:47:27 -05:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2018-10-15 15:35:35 -05:00
2017-11-15 17:07:07 -05:00
2017-03-15 17:18:55 -06:00
2018-06-19 15:02:52 -05:00
2018-12-19 13:50:59 -05:00
2017-09-06 13:00:49 -05:00
2017-12-22 09:23:22 -05:00
2018-06-05 05:37:54 -06:00
2018-02-15 14:31:32 -06:00
2018-11-26 14:30:02 -07:00
2018-10-19 17:33:05 -04:00
2018-03-07 16:03:01 -06:00
2018-11-18 15:08:16 -05:00
2018-11-26 14:30:02 -07:00
2018-11-26 14:30:02 -07:00
2019-01-14 17:07:35 +05:30
2019-01-20 19:49:11 +01:00
2018-03-01 13:13:55 -06:00
2018-12-03 17:47:26 -05:00
2017-07-24 18:30:59 +00:00
2018-10-19 17:33:05 -04:00
2018-11-21 09:56:16 -05:00
2018-11-21 09:56:16 -05:00
2017-05-17 17:41:11 -05:00
2018-11-26 12:56:24 -06:00
2017-08-28 11:12:50 -05:00
2017-06-08 10:42:54 -05:00
2018-07-18 13:37:03 -05:00
2018-11-21 09:56:16 -05:00
2018-10-18 12:44:10 -05:00
2018-11-18 15:08:16 -05:00
2017-03-27 19:54:44 +00:00
2018-03-13 13:46:08 -04:00
2018-11-14 09:25:32 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2018-11-14 09:25:32 -05:00
2018-03-13 13:46:08 -04:00
2016-10-27 09:53:55 -04:00
2017-12-22 09:23:22 -05:00
2018-07-26 14:29:18 -05:00
2018-07-26 14:29:18 -05:00
2018-11-26 12:56:24 -06:00
2018-07-26 14:29:18 -05:00
2016-10-27 09:53:55 -04:00
2018-10-19 17:33:05 -04:00
2018-03-14 05:20:12 -04:00
2018-07-26 14:29:18 -05:00
2018-04-30 16:30:44 -04:00
2017-01-17 17:08:53 -06:00
2017-01-17 17:08:53 -06:00
2018-10-19 17:33:05 -04:00
2017-11-06 16:07:01 -05:00
2017-12-22 09:23:22 -05:00
2018-10-19 17:33:05 -04:00
2018-10-02 11:25:25 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-12-22 09:23:22 -05:00
2016-10-27 09:53:55 -04:00
2018-03-01 13:13:55 -06:00
2018-03-01 13:13:55 -06:00
2018-10-03 08:35:12 -05:00
2016-10-27 09:53:55 -04:00
2018-11-21 09:56:16 -05:00
2017-06-19 13:33:48 -04:00
2018-08-30 17:12:11 -05:00
2017-12-20 12:40:01 -05:00
2018-09-26 11:09:50 -05:00
2017-01-24 11:25:19 -06:00
2018-05-20 13:55:26 +02:00
2018-10-04 19:40:47 -04:00
2018-10-19 12:34:08 -04:00
2018-11-19 05:49:39 -07:00
2018-11-26 14:30:02 -07:00
2018-11-26 14:30:02 -07:00
2019-01-23 09:46:00 -06:00
2017-12-22 09:23:22 -05:00
2016-10-27 09:53:55 -04:00
2017-12-19 09:42:19 -05:00
2019-01-17 14:51:47 -04:00
2016-10-27 09:53:55 -04:00
2018-10-19 17:33:05 -04:00
2019-01-28 12:26:58 -07:00
2018-11-21 09:56:16 -05:00
2016-10-27 09:53:55 -04:00
2018-11-21 09:56:16 -05:00
2017-12-30 13:20:16 -05:00
2018-05-21 11:03:10 -05:00
2018-02-12 22:53:35 -05:00
2018-11-11 09:23:15 -05:00
2016-10-27 09:53:55 -04:00
2018-03-15 07:25:28 -04:00
2018-03-13 13:46:08 -04:00
2018-06-19 10:46:46 -06:00
2017-02-13 11:33:15 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-07-21 13:58:26 -04:00
2017-12-22 09:23:22 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2018-01-22 12:38:13 -06:00
2018-11-21 09:56:16 -05:00
2018-10-19 17:33:05 -04:00
2018-07-26 14:29:18 -05:00
2017-12-22 09:23:22 -05:00
2018-11-18 15:08:16 -05:00
2016-10-27 09:53:55 -04:00
2018-09-26 08:02:28 -05:00
2018-10-23 08:43:41 -04:00
2019-01-17 10:02:35 -06:00
2017-12-22 09:23:22 -05:00
2017-12-22 09:23:22 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-12-22 09:23:22 -05:00
2018-10-19 17:33:05 -04:00
2019-01-28 12:26:58 -07:00
2017-02-07 12:13:23 -06:00
2018-11-26 14:30:02 -07:00
2018-11-18 15:08:16 -05:00
2018-12-26 13:36:13 -05:00
2018-11-26 12:56:24 -06:00
2018-08-20 12:32:58 -05:00
2019-01-17 14:51:47 -04:00
2018-12-07 08:59:00 -05:00
2018-01-09 18:55:06 -06:00
2019-01-03 17:39:22 -06:00
2018-03-01 13:13:55 -06:00
2018-05-03 16:31:56 +00:00
2018-03-13 16:24:06 -04:00
2019-01-22 15:53:01 -06:00
2017-08-10 14:38:12 -05:00
2016-10-27 09:53:55 -04:00
2018-11-21 09:56:16 -05:00
2018-12-11 12:29:09 -05:00
2017-12-22 09:23:22 -05:00
2016-10-27 09:53:55 -04:00
2018-07-06 12:53:03 -05:00
2018-11-21 09:56:16 -05:00
2017-12-22 09:23:22 -05:00
2018-01-03 17:23:36 -05:00
2018-04-24 14:54:25 -06:00
2018-12-11 12:29:09 -05:00
2017-12-22 09:23:22 -05:00
2018-12-11 10:08:07 -05:00
2018-06-23 08:26:19 +02:00
2018-07-23 06:47:20 -05:00
2018-11-21 09:56:16 -05:00