open-source-search-engine/linkspam.h

39 lines
1.3 KiB
C
Raw Normal View History

2013-08-03 00:12:24 +04:00
// Matt Wells, copyright Nov 2001
#ifndef _LINKSPAM_H_
#define _LINKSPAM_H_
#include "gb-include.h"
#include "ip.h"
//#include "TermTable.h"
2014-11-11 01:45:11 +03:00
bool setLinkSpam ( int32_t ip ,
int32_t *indCatIds ,
int32_t numIndCatIds ,
2013-08-03 00:12:24 +04:00
class Url *linker ,
2014-11-11 01:45:11 +03:00
int32_t siteNumInlinks ,
2013-08-03 00:12:24 +04:00
class Xml *xml ,
class Links *links ,
bool isContentTruncated ,
2014-11-11 01:45:11 +03:00
int32_t niceness );
2013-08-03 00:12:24 +04:00
bool isLinkSpam ( class Url *linker ,
2014-11-11 01:45:11 +03:00
int32_t ip ,
int32_t *indCatIds ,
int32_t numIndCatIds ,
int32_t siteNumInlinks ,
2013-08-03 00:12:24 +04:00
class Xml *xml ,
class Links *links ,
2014-11-11 01:45:11 +03:00
int32_t maxDocLen ,
2013-08-03 00:12:24 +04:00
char **note ,
Url *linkee ,
2014-11-11 01:45:11 +03:00
int32_t linkNode ,
2013-08-03 00:12:24 +04:00
char *coll ,
2014-11-11 01:45:11 +03:00
int32_t niceness );
2013-08-03 00:12:24 +04:00
char *getCommentSection ( char *haystack ,
2014-11-11 01:45:11 +03:00
int32_t haystackSize ,
2013-08-03 00:12:24 +04:00
bool isUnicode ,
2014-11-11 01:45:11 +03:00
int32_t niceness );
2013-08-03 00:12:24 +04:00
#endif