1 /* Copyright (C) 2000-2015 Lavtech.com corp. All rights reserved. 2 3 This program is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License as published by 5 the Free Software Foundation; either version 2 of the License, or 6 (at your option) any later version. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License 14 along with this program; if not, write to the Free Software 15 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 16 */ 17 18 #ifndef _UDM_INDEXER_H 19 #define _UDM_INDEXER_H 20 21 /* API fuctions to be called in main() */ 22 23 UDM_API(udm_rc_t) UdmURLFile(UDM_AGENT *Indexer,const char *f, udm_urlfilecmd_t cmd); 24 UDM_API(udm_rc_t) UdmStoreHrefs(UDM_AGENT *Indexer); 25 udm_rc_t UdmDocStoreHrefs(UDM_AGENT *Indexer, UDM_DOCUMENT *Doc); 26 udm_rc_t UdmDocProcessContentResponseHeaders(UDM_AGENT *I, UDM_DOCUMENT *D); 27 28 #ifdef WIN32 29 __C_LINK unsigned int __stdcall UdmCrawlerMain(void *arg); 30 #else 31 void * UdmCrawlerMain(void *arg); 32 #endif 33 34 udm_rc_t UdmUserSectionsParse(UDM_AGENT *Indexer, 35 UDM_USERSECTIONLIST *SectionMatch, 36 UDM_DOCUMENT *Doc, UDM_CHARSET *doccs); 37 38 udm_method_t 39 UdmSectionFilterListFindMethod(const UDM_SECTIONFILTERLIST *L, 40 const UDM_DOCUMENT *Doc, 41 char *reason, size_t reason_size); 42 43 #endif 44