foobar2000 SDK
2015-08-03
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
foobar2000
SDK
link_resolver.cpp
Go to the documentation of this file.
1
#include "
foobar2000.h
"
2
3
bool
link_resolver::g_find
(
service_ptr_t<link_resolver>
& p_out,
const
char
* p_path)
4
{
5
service_enum_t<link_resolver>
e;
6
service_ptr_t<link_resolver>
ptr;
7
pfc::string_extension
ext(p_path);
8
while
(e.
next
(ptr))
9
{
10
if
(ptr->is_our_path(p_path,ext))
11
{
12
p_out = ptr;
13
return
true
;
14
}
15
}
16
return
false
;
17
}
pfc::string_extension
Definition:
string_base.h:511
service_enum_t
Definition:
service.h:573
link_resolver::g_find
static bool g_find(service_ptr_t< link_resolver > &p_out, const char *p_path)
Helper function; finds link_resolver interface that supports specified link file. ...
Definition:
link_resolver.cpp:3
foobar2000.h
service_ptr_t
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition:
service.h:55
service_enum_t::next
bool next(service_ptr_t< t_query > &p_out)
Definition:
service.h:587
Generated by
1.8.11