Skip to content

Commit

Permalink
CAddonMgr: make GetExtElement() public
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Mar 6, 2015
1 parent 2541675 commit 580fe4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xbmc/addons/AddonManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,9 @@ bool CAddonMgr::PlatformSupportsAddon(const cp_plugin_info_t *plugin) const
return true; // assume no <platform> is equivalent to <platform>all</platform>
}

const cp_cfg_element_t *CAddonMgr::GetExtElement(cp_cfg_element_t *base, const char *path)
cp_cfg_element_t *CAddonMgr::GetExtElement(cp_cfg_element_t *base, const char *path)
{
const cp_cfg_element_t *element = NULL;
cp_cfg_element_t *element = NULL;
if (base)
element = m_cpluff->lookup_cfg_element(base, path);
return element;
Expand Down
9 changes: 8 additions & 1 deletion xbmc/addons/AddonManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ namespace ADDON
/* libcpluff */
std::string GetExtValue(cp_cfg_element_t *base, const char *path);

/*! \brief Retrieve an element from a given configuration element
\param base the base configuration element.
\param path the path to the configuration element from the base element.
\param element [out] returned element.
\return true if the configuration element is present
*/
cp_cfg_element_t *GetExtElement(cp_cfg_element_t *base, const char *path);

/*! \brief Retrieve a vector of repeated elements from a given configuration element
\param base the base configuration element.
\param path the path to the configuration element from the base element.
Expand Down Expand Up @@ -215,7 +223,6 @@ namespace ADDON
std::map<std::string, AddonPtr>& unresolved);

/* libcpluff */
const cp_cfg_element_t *GetExtElement(cp_cfg_element_t *base, const char *path);
cp_context_t *m_cp_context;
DllLibCPluff *m_cpluff;
VECADDONS m_updateableAddons;
Expand Down

0 comments on commit 580fe4e

Please sign in to comment.