Skip to content

Commit

Permalink
PCP: Support Apteryx 2.0+
Browse files Browse the repository at this point in the history
Signed-off-by: Tobi Wulff <[email protected]>
  • Loading branch information
blairsteven authored and Tobi Wulff committed May 20, 2015
1 parent 3b3a425 commit f0903fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/pcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ get_uptime_string (void)
*************************/

bool
pcp_config_changed (const char *path, void *priv, const char *value)
pcp_config_changed (const char *path, const char *value)
{
const char *key = NULL;

Expand Down Expand Up @@ -753,7 +753,7 @@ pcp_config_changed (const char *path, void *priv, const char *value)
}

bool
pcp_mapping_changed (const char *path, void *priv, const char *value)
pcp_mapping_changed (const char *path, const char *value)
{
char *tmp = NULL;
int mapping_id = -1;
Expand Down Expand Up @@ -819,8 +819,8 @@ pcp_register_cb (pcp_callbacks *cb)
saved_cbs = cb;
pthread_mutex_unlock (&callback_lock);

apteryx_watch (CONFIG_PATH "/*", cb ? pcp_config_changed : NULL, NULL);
apteryx_watch (MAPPING_PATH "/", cb ? pcp_mapping_changed : NULL, NULL);
apteryx_watch (CONFIG_PATH "/*", cb ? pcp_config_changed : NULL);
apteryx_watch (MAPPING_PATH "/", cb ? pcp_mapping_changed : NULL);

return true;
}
Expand Down

0 comments on commit f0903fe

Please sign in to comment.