Exemplo n.º 1
0
/* exported processor function */
int tagsistant_processor(tagsistant_querytree *qtree, tagsistant_keyword keywords[TAGSISTANT_MAX_KEYWORDS])
{
	/* default tagging */
	tagsistant_sql_tag_object(qtree->dbi, "audio", NULL, NULL, qtree->inode);

	/* applying regular expression */
	tagsistant_plugin_iterator(qtree, "audio:", keywords, rx);

	return(TP_STOP);
}
Exemplo n.º 2
0
/* exported processor function */
int tagsistant_processor(tagsistant_querytree *qtree, tagsistant_keyword keywords[TAGSISTANT_MAX_KEYWORDS])
{
	/* default tagging */
	tagsistant_sql_tag_object(qtree->dbi, "image", NULL, NULL, qtree->inode);
	tagsistant_sql_tag_object(qtree->dbi, "image:", "format", "jpeg", qtree->inode);

	/* applying regular expression */
	tagsistant_plugin_iterator(qtree, "image:", keywords, rx);

	return(EXCLUDE_OTHER_PLUGINS ? TP_STOP : TP_OK);
}
Exemplo n.º 3
0
/* exported processor function */
int tagsistant_processor(tagsistant_querytree *qtree, tagsistant_keyword keywords[TAGSISTANT_MAX_KEYWORDS], int keyword_counter)
{
	/* default tagging */
	tagsistant_sql_tag_object(qtree->dbi, "document", NULL, NULL, qtree->inode);
	tagsistant_sql_tag_object(qtree->dbi, "webpage", NULL, NULL, qtree->inode);
	tagsistant_sql_tag_object(qtree->dbi, "html", NULL, NULL, qtree->inode);

	/* apply regular expressions to document content */
	tagsistant_plugin_iterator(qtree, "document:", keywords, keyword_counter, rx);

	return(TP_STOP);
}