| 189 | } |
| 190 | |
| 191 | uint32_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 | |
| 211 | GVariant *RequiresQueue::QueueFetchGVariant(GVariant *parameters) const |