Skip to content

Commit

Permalink
add binc_agent_get_path (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
abqjln authored Oct 7, 2024
1 parent cd77046 commit 7388eca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions binc/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,9 @@ void binc_agent_set_request_passkey_cb(Agent *agent, AgentRequestPasskeyCallback
g_assert(callback != NULL);
agent->request_passkey_callback = callback;
}

const char *binc_agent_get_path(const Agent *agent) {
g_assert(agent != NULL);
return agent->path;
}

2 changes: 2 additions & 0 deletions binc/agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ void binc_agent_set_request_passkey_cb(Agent *agent, AgentRequestPasskeyCallback

void binc_agent_free(Agent *agent);

const char *binc_agent_get_path(const Agent *agent);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 7388eca

Please sign in to comment.