/* Copyright 2005 The Apache Software Foundation or its licensors, as * applicable. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef _LCN_INIT_H #define _LCN_INIT_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** Initialize the Lucene4c library. * * This must be called before any other Lucene4c function. */ void lcn_init (void); /** Initialize Lucene4c per-thread data structures. * * This must be called before any other Lucene4c functions (other than * @c lcn_init) are called in a given thread. */ void lcn_thread_attach (void); /** Clear Lucene4c per-thread data structures. * * This should be called before a thread that called @c lcn_thread_attach * is destroyed, so that Lucene4c can clean up its per-thread data. */ void lcn_thread_detach (void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _LCN_INIT_H */