MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / RequireAdd

Method RequireAdd

src/common/requiresqueue.cpp:191–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191uint32_t RequiresQueue::RequireAdd(ClientAttentionType type,
192 ClientAttentionGroup group,
193 std::string name,
194 std::string descr,
195 bool hidden_input)
196{
197 struct RequiresSlot elmt;
198 elmt.id = reqids[get_reqid_index(type, group)]++;
199 elmt.type = type;
200 elmt.group = group;
201 elmt.name = name;
202 elmt.user_description = descr;
203 elmt.provided = false;
204 elmt.hidden_input = hidden_input;
205 slots.push_back(elmt);
206
207 return elmt.id;
208}
209
210
211GVariant *RequiresQueue::QueueFetchGVariant(GVariant *parameters) const

Callers 4

eventMethod · 0.80
initialize_clientMethod · 0.80
initMethod · 0.80
selftestFunction · 0.80

Calls

no outgoing calls

Tested by 2

initMethod · 0.64
selftestFunction · 0.64