Lines Matching refs:keys
234 /* Return a list of keys in the tdb */
333 /* Return an array of keys from a python object which must be a string or a
336 static BOOL make_lock_list(PyObject *py_keys, TDB_DATA **keys, int *num_keys)
348 /* Turn python list into array of keys */
351 *keys = (TDB_DATA *)malloc(sizeof(TDB_DATA) * (*num_keys));
363 PyArg_Parse(key, "s#", &(*keys)[i].dptr,
364 &(*keys)[i].dsize);
371 *keys = (TDB_DATA *)malloc(sizeof(TDB_DATA));
373 PyArg_Parse(py_keys, "s#", &(*keys)->dptr, &(*keys)->dsize);
383 TDB_DATA *keys;
394 if (!make_lock_list(py_keys, &keys, &num_keys))
397 result = tdb_lockkeys(obj->tdb, num_keys, keys);
399 free(keys);
579 { "keys", (PyCFunction)py_tdb_hnd_keys, METH_VARARGS },