Lines Matching defs:res
174 db_result *res = new db_result;
182 if (res == NULL)
186 res->objects.objects_len = 0; /* default */
187 res->objects.objects_val = NULL; /* default */
191 res->status = internal_db.lookup(query, &num_answers, &ans);
192 res->objects.objects_len = (int) num_answers;
193 res->objects.objects_val = ans;
197 res->status = internal_db.add(query, content);
201 res->status = internal_db.remove(query);
206 res->status = internal_db.first(&where, &single);
207 if (res->status == DB_SUCCESS)
208 assign_next_desc(&(res->nextinfo), where);
210 res->status = internal_db.first(query,
213 if (res->status == DB_SUCCESS)
214 assign_next_desc(&(res->nextinfo), index_desc);
216 if (res->status == DB_SUCCESS) {
217 res->objects.objects_val = new entry_object_p;
218 if (res->objects.objects_val == NULL) {
219 res->objects.objects_len = 0;
220 delete res;
225 res->objects.objects_len = 1;
226 res->objects.objects_val[0] = single;
235 res->status = internal_db.next(prev, &where,
237 if (res->status == DB_SUCCESS)
238 assign_next_desc(&(res->nextinfo),
242 res->status = DB_NOTFOUND;
246 res->status = internal_db.next(prev_desc,
248 if (res->status == DB_SUCCESS)
249 assign_next_desc(&(res->nextinfo),
253 res->status = DB_NOTFOUND;
257 res->status = DB_BADQUERY;
264 if (res->status == DB_SUCCESS) {
265 res->objects.objects_len = 1;
266 res->objects.objects_val = new entry_object_p;
267 if (res->objects.objects_val == NULL) {
268 res->objects.objects_len = 0;
269 delete res;
274 res->objects.objects_val[0] = single;
282 res->status = DB_SUCCESS;
290 res->status = internal_db.reset_next(prev_desc);
299 res->status = DB_BADQUERY;
304 res->status = internal_db.all(&num_answers, &ans);
305 res->objects.objects_len = (int) num_answers;
306 res->objects.objects_val = ans;
311 res->status = DB_BADQUERY;
312 return (res);
314 return (res);
328 db_result * res;
378 res = exec_action(action, query, content, NULL);
384 return (res);
397 db_result *res;
406 res = exec_action(action, query, content, previous);
409 return (res);
414 res = exec_action(DB_ADD, query, content, previous);
417 return (res);