Skip to content

Commit

Permalink
scheme: C++ version of tll_scheme_ref function
Browse files Browse the repository at this point in the history
  • Loading branch information
shramov committed Nov 16, 2023
1 parent c6f7a82 commit e9fa798
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tll/scheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ typedef struct tll_scheme_t
static tll_scheme_t * load(std::string_view url) { return tll_scheme_load(url.data(), url.size()); }
tll_scheme_t * copy() const { return tll_scheme_copy(this); }

tll_scheme_t * ref() { return const_cast<tll_scheme_t *>(tll_scheme_ref(this)); }
const tll_scheme_t * ref() const { return tll_scheme_ref(this); }

tll_scheme_message_t * lookup(int id)
{
for (auto m = messages; m; m = m->next) {
Expand Down

0 comments on commit e9fa798

Please sign in to comment.