-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp_morcilla.h
More file actions
32 lines (24 loc) · 843 Bytes
/
php_morcilla.h
File metadata and controls
32 lines (24 loc) · 843 Bytes
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
#ifndef PHP_MORCILLA_H
#define PHP_MORCILLA_H
extern zend_module_entry morcilla_module_entry;
#define phpext_morcilla_ptr &morcilla_module_entry
#define PHP_MORCILLA_VERSION "1.0.0"
#define MORCILLA_MAX_CALLS 4096
#define MORCILLA_MAX_ARG_LEN 256
#define MORCILLA_HEADER_KEY "HTTP_MORCILLA_KEY"
#define MORCILLA_HEADER_INTERCEPT "HTTP_MORCILLA_INTERCEPT"
#define MORCILLA_RESULT_HEADER "X-Morcilla-Result"
#if defined(ZTS) && defined(COMPILE_DL_MORCILLA)
ZEND_TSRMLS_CACHE_EXTERN()
#endif
ZEND_BEGIN_MODULE_GLOBALS(morcilla)
char *api_key;
bool active;
bool checked;
HashTable intercept_targets;
void *calls;
uint32_t call_count;
uint32_t call_capacity;
ZEND_END_MODULE_GLOBALS(morcilla)
#define MG(v) ZEND_MODULE_GLOBALS_ACCESSOR(morcilla, v)
#endif /* PHP_MORCILLA_H */