mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
d1b28647ed
and builds a *very* efficient engine that will tell you which regex a string matches with only a single pass through the string. To be used in the config file when specifying devices. o Anchor's aren't supported yet (^ and $) but that won't take long. o Also when we get some realistic config files we may want to consider adding an extra level of indirection to the dfa state in order to compress the table. It all depends on how large typical tables get.
20 lines
373 B
C
20 lines
373 B
C
/*
|
|
* Copyright (C) 2001 Sistina Software (UK) Limited.
|
|
*
|
|
* This file is released under the GPL.
|
|
*/
|
|
|
|
#ifndef _LVM_TTREE_H
|
|
#define _LVM_TTREE_H
|
|
|
|
#include "pool.h"
|
|
|
|
struct ttree;
|
|
|
|
struct ttree *ttree_create(struct pool *mem, unsigned int klen);
|
|
|
|
void *ttree_lookup(struct ttree *tt, unsigned *key);
|
|
void *ttree_insert(struct ttree *tt, unsigned *key, void *data);
|
|
|
|
#endif
|