005cb88eb978527a63163ab67ad7981446f8c6e3
[ccan] / ccan / tdb / tools / keywords.gperf
1 %{
2 %}
3 %language=ANSI-C
4 struct op_table {
5         const char *name;
6         enum op_type type;
7         void (*enhance_op)(const char *filename,
8                            struct op op[], unsigned int op_num, char *words[]);
9 };
10 %define hash-function-name hash_keyword
11 %define lookup-function-name find_keyword
12 %readonly-tables
13 %struct-type
14 %enum
15 %%
16 tdb_lockall, OP_TDB_LOCKALL, op_add_nothing,
17 tdb_lockall_mark, OP_TDB_LOCKALL_MARK, op_add_nothing,
18 tdb_lockall_unmark, OP_TDB_LOCKALL_UNMARK, op_add_nothing,
19 tdb_lockall_nonblock, OP_TDB_LOCKALL_NONBLOCK, op_add_nothing,
20 tdb_unlockall, OP_TDB_UNLOCKALL, op_add_nothing,
21 tdb_lockall_read, OP_TDB_LOCKALL_READ, op_add_nothing,
22 tdb_lockall_read_nonblock, OP_TDB_LOCKALL_READ_NONBLOCK, op_add_nothing,
23 tdb_unlockall_read, OP_TDB_UNLOCKALL_READ, op_add_nothing,
24 tdb_chainlock, OP_TDB_CHAINLOCK, op_add_key,
25 tdb_chainlock_nonblock, OP_TDB_CHAINLOCK_NONBLOCK, op_add_key_ret,
26 tdb_chainlock_mark, OP_TDB_CHAINLOCK_MARK, op_add_key,
27 tdb_chainlock_unmark, OP_TDB_CHAINLOCK_UNMARK, op_add_key,
28 tdb_chainunlock, OP_TDB_CHAINUNLOCK, op_add_key,
29 tdb_chainlock_read, OP_TDB_CHAINLOCK_READ, op_add_key,
30 tdb_chainunlock_read, OP_TDB_CHAINUNLOCK_READ, op_add_key,
31 tdb_parse_record, OP_TDB_PARSE_RECORD, op_add_key_ret,
32 tdb_exists, OP_TDB_EXISTS, op_add_key_ret,
33 tdb_store, OP_TDB_STORE, op_add_store,
34 tdb_append, OP_TDB_APPEND, op_add_append,
35 tdb_get_seqnum, OP_TDB_GET_SEQNUM, op_add_seqnum,
36 tdb_wipe_all, OP_TDB_WIPE_ALL, op_add_nothing,
37 tdb_transaction_start, OP_TDB_TRANSACTION_START, op_add_nothing,
38 tdb_transaction_cancel, OP_TDB_TRANSACTION_CANCEL, op_add_nothing,
39 tdb_transaction_commit, OP_TDB_TRANSACTION_COMMIT, op_add_nothing,
40 tdb_traverse_read_start, OP_TDB_TRAVERSE_READ_START, op_add_traverse,
41 tdb_traverse_start, OP_TDB_TRAVERSE_START, op_add_traverse,
42 tdb_traverse_end, OP_TDB_TRAVERSE_END, op_analyze_traverse,
43 traverse, OP_TDB_TRAVERSE, op_add_key_data,
44 tdb_firstkey, OP_TDB_FIRSTKEY, op_add_key,
45 tdb_nextkey, OP_TDB_NEXTKEY, op_add_key_data,
46 tdb_fetch, OP_TDB_FETCH, op_add_key_data,
47 tdb_delete, OP_TDB_DELETE, op_add_key_ret,