MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / cb

Function cb

src/platform/linux/audio.cpp:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135 template<class T>
136 void cb(ctx_t::pointer ctx, add_const_t<T> i, void *userdata) {
137 auto &f = *(cb_simple_t<T> *) userdata;
138
139 // Cannot similarly filter on eol here. Unless reported otherwise assume
140 // we have no need for special filtering like cb?
141 f(ctx, i);
142 }
143
144 template<class T>
145 using cb_t = std::function<void(ctx_t::pointer, add_const_t<T> i, int eol)>;

Callers

nothing calls this directly

Calls 1

fFunction · 0.85

Tested by

no test coverage detected