.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "TEXTSEARCH_REGISTER" "9" "09 October 2005" "" ""
.SH NAME
textsearch_register \- register a textsearch module
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int textsearch_register (struct ts_ops * \fIops\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIops\fB\fR
operations lookup table
.SH "DESCRIPTION"
.PP
This function must be called by textsearch modules to announce
their presence. The specified &\fIops\fR must have name set to a
unique identifier and the callbacks \fBfind\fR, \fBinit\fR, \fBget_pattern\fR,
and \fBget_pattern_len\fR must be implemented.
.PP
Returns 0 or -EEXISTS if another module has already registered
with same name.