summaryrefslogtreecommitdiffstats
path: root/debian/htdig/htdig-3.2.0b6/libhtdigphp/htdigphp.h
blob: 4241af1ee7d46ae89b222252404c5c4087bf1647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// -------------------------------------------------
// libhtdigphp.h
//
// Header File for libhtdig PHP 4.0 wrapper.
// 
// Requires libhtdig 3.2.0 or better
//
// Part of the ht://Dig package   <http://www.htdig.org/>
// <http://www.gnu.org/copyleft/gpl.html>
//
// Copyright (c) 1995-2002 The ht://Dig Group
// Copyright (c) 2002 Rightnow Technologies, Inc.
// 
// Dual Licensed under GPL & LGPL
// See GPL and LGPL files for License.
// 
// Copies available at 
// http://www.fsf.org/licenses/gpl.html
// http://www.fsf.org/licenses/lgpl.html
//
// --------------------------------------------------

/* $Id: htdigphp.h,v 1.1 2004/03/20 01:31:21 nealr Exp $ */

#ifndef HTDIGPHP_H
#define HTDIGPHP_H

//#if HAVE_HTDIG


#ifdef PHP_WIN32
#define PHP_HTDIG_API __declspec(dllexport)
#else
#define PHP_HTDIG_API
#endif


PHP_MINIT_FUNCTION(htdig);
PHP_MINFO_FUNCTION(htdig);

PHP_FUNCTION(htsearch_open);
PHP_FUNCTION(htsearch_query);
PHP_FUNCTION(htsearch_get_nth_match);
PHP_FUNCTION(htsearch_close);
PHP_FUNCTION(htsearch_get_error);
PHP_FUNCTION(htdig_index_test_url);


//#define DEFAULT_TIME_FORMAT      "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n"
#define DEFAULT_TIME_FORMAT      "%Y-%m-%d"

#define TIME_FORMAT_SIZE         256

#endif


/*
 * Local variables:
 * tab-width: 4
 * c-basic-offset: 4
 * End:
 */