foobar2000 SDK  2015-08-03
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 {
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 }
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool next(service_ptr_t< t_query > &p_out)
Definition: service.h:587