-
Notifications
You must be signed in to change notification settings - Fork 0
/
php_minicrawler.h
68 lines (60 loc) · 2.13 KB
/
php_minicrawler.h
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
63
64
65
66
67
68
#ifndef PHP_MINICRAWLER_H
#define PHP_MINICRAWLER_H 1
#define PHP_MINICRAWLER_VERSION "2.0"
#define PHP_MINICRAWLER_EXTNAME "minicrawler"
#define MINICRAWLER_WORLD_EXTNAME "minicrawler"
#include <minicrawler/minicrawler.h>
#include <minicrawler/minicrawler-url.h>
#define MCRAWLER_URL_RES_NAME "minicrawler URL"
#define MCRAWLER_SETTINGS_RES_NAME "minicrawler settings"
#define MCRAWLER_URL_URL_RES_NAME "minicrawler parser URL"
PHP_MINIT_FUNCTION(minicrawler);
PHP_FUNCTION(mcrawler_init_url);
PHP_FUNCTION(mcrawler_init_settings);
PHP_FUNCTION(mcrawler_close_url);
PHP_FUNCTION(mcrawler_close_settings);
PHP_FUNCTION(mcrawler_get_timeout);
PHP_FUNCTION(mcrawler_get_delay);
PHP_FUNCTION(mcrawler_set_useragent);
PHP_FUNCTION(mcrawler_set_headers);
PHP_FUNCTION(mcrawler_add_headers);
PHP_FUNCTION(mcrawler_set_credentials);
PHP_FUNCTION(mcrawler_set_postdata);
PHP_FUNCTION(mcrawler_set_options);
PHP_FUNCTION(mcrawler_set_option);
PHP_FUNCTION(mcrawler_set_cookies);
PHP_FUNCTION(mcrawler_add_cookies);
PHP_FUNCTION(mcrawler_go);
PHP_FUNCTION(mcrawler_reset);
PHP_FUNCTION(mcrawler_get_index);
PHP_FUNCTION(mcrawler_get_state);
PHP_FUNCTION(mcrawler_get_status);
PHP_FUNCTION(mcrawler_get_url);
PHP_FUNCTION(mcrawler_get_method);
PHP_FUNCTION(mcrawler_get_request);
PHP_FUNCTION(mcrawler_get_redirected_to);
PHP_FUNCTION(mcrawler_get_redirect_info);
PHP_FUNCTION(mcrawler_get_header);
PHP_FUNCTION(mcrawler_get_body);
PHP_FUNCTION(mcrawler_get_response_size);
PHP_FUNCTION(mcrawler_get_options);
PHP_FUNCTION(mcrawler_get_status);
PHP_FUNCTION(mcrawler_get_url);
PHP_FUNCTION(mcrawler_get_timing);
PHP_FUNCTION(mcrawler_get_cookies);
PHP_FUNCTION(mcrawler_get_content_type);
PHP_FUNCTION(mcrawler_get_charset);
PHP_FUNCTION(mcrawler_get_www_authenticate);
PHP_FUNCTION(mcrawler_get_error_msg);
PHP_FUNCTION(mcrawler_serialize);
PHP_FUNCTION(mcrawler_unserialize);
PHP_FUNCTION(mcrawler_version);
PHP_FUNCTION(mcrawler_parse_url);
typedef struct {
long id;
void ***thread_ctx;
} php_mcrawler_ctx;
void timing_to_zval(mcrawler_timing *, int, zval *);
extern zend_module_entry minicrawler_module_entry;
#define phpext_minicrawler_ptr &minicrawler_module_entry
#endif