diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-03-11 06:57:24 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-03-11 06:57:24 +0000 |
commit | c44da2d6d7f8a991cd8143f97acda117a4e0a422 (patch) | |
tree | e57adad451551e486fdbb8f4de0b2240978d091d /pjmedia/src/pjmedia-audiodev/legacy_dev.c | |
parent | a71c9ccfea1d7d9e7999037a8ee13820eb0e16e2 (diff) |
Fixed #1204: Support for refreshing audio device list.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3438 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-audiodev/legacy_dev.c')
-rw-r--r-- | pjmedia/src/pjmedia-audiodev/legacy_dev.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-audiodev/legacy_dev.c b/pjmedia/src/pjmedia-audiodev/legacy_dev.c index 66fad9b0..a7680f1e 100644 --- a/pjmedia/src/pjmedia-audiodev/legacy_dev.c +++ b/pjmedia/src/pjmedia-audiodev/legacy_dev.c @@ -51,6 +51,7 @@ struct legacy_stream /* Prototypes */ static pj_status_t factory_init(pjmedia_aud_dev_factory *f); static pj_status_t factory_destroy(pjmedia_aud_dev_factory *f); +static pj_status_t factory_refresh(pjmedia_aud_dev_factory *f); static unsigned factory_get_dev_count(pjmedia_aud_dev_factory *f); static pj_status_t factory_get_dev_info(pjmedia_aud_dev_factory *f, unsigned index, @@ -86,7 +87,8 @@ static pjmedia_aud_dev_factory_op factory_op = &factory_get_dev_count, &factory_get_dev_info, &factory_default_param, - &factory_create_stream + &factory_create_stream, + &factory_refresh }; static pjmedia_aud_stream_op stream_op = @@ -147,6 +149,13 @@ static pj_status_t factory_destroy(pjmedia_aud_dev_factory *f) return status; } +/* API: refresh the list of devices */ +static pj_status_t factory_refresh(pjmedia_aud_dev_factory *f) +{ + PJ_UNUSED_ARG(f); + return PJ_ENOTSUP; +} + /* API: get number of devices */ static unsigned factory_get_dev_count(pjmedia_aud_dev_factory *f) { |