#include "protobuf.h"#include <php.h>#include <Zend/zend_interfaces.h>#include "arena.h"#include "array.h"#include "convert.h"#include "def.h"#include "map.h"#include "message.h"#include "names.h"
Go to the source code of this file.
Macros | |
| #define | PROTOBUF_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(protobuf, v) |
Functions | |
| void | Descriptors_Add (zend_object *desc) |
| void | free_protobuf_globals (zend_protobuf_globals *globals) |
| const zval * | get_generated_pool () |
| void | NameMap_AddEnum (const upb_enumdef *e) |
| void | NameMap_AddMessage (const upb_msgdef *m) |
| const upb_enumdef * | NameMap_GetEnum (zend_class_entry *ce) |
| const upb_msgdef * | NameMap_GetMessage (zend_class_entry *ce) |
| void | ObjCache_Add (const void *upb_obj, zend_object *php_obj) |
| void | ObjCache_Delete (const void *upb_obj) |
| bool | ObjCache_Get (const void *upb_obj, zval *val) |
| static | PHP_GINIT_FUNCTION (protobuf) |
| static | PHP_GSHUTDOWN_FUNCTION (protobuf) |
| static | PHP_MSHUTDOWN_FUNCTION (protobuf) |
| static | PHP_RINIT_FUNCTION (protobuf) |
| static | PHP_RSHUTDOWN_FUNCTION (protobuf) |
| STD_PHP_INI_ENTRY ("protobuf.keep_descriptor_pool_after_request", "0", PHP_INI_ALL, OnUpdateBool, keep_descriptor_pool_after_request, zend_protobuf_globals, protobuf_globals) | |
Variables | |
| HashTable | descriptors |
| zval | generated_pool |
| upb_symtab * | global_symtab |
| zend_bool | keep_descriptor_pool_after_request |
| HashTable | name_enum_cache |
| HashTable | name_msg_cache |
| HashTable | object_cache |
| static const zend_module_dep | protobuf_deps [] |
| zend_function_entry | protobuf_functions [] |
| zend_module_entry | protobuf_module_entry |
| #define PROTOBUF_G | ( | v | ) | ZEND_MODULE_GLOBALS_ACCESSOR(protobuf, v) |
Definition at line 53 of file protobuf/php/ext/google/protobuf/protobuf.c.
| void Descriptors_Add | ( | zend_object * | desc | ) |
Definition at line 210 of file protobuf/php/ext/google/protobuf/protobuf.c.
| void free_protobuf_globals | ( | zend_protobuf_globals * | globals | ) |
Definition at line 85 of file protobuf/php/ext/google/protobuf/protobuf.c.
| const zval* get_generated_pool | ( | ) |
Definition at line 94 of file protobuf/php/ext/google/protobuf/protobuf.c.
| void NameMap_AddEnum | ( | const upb_enumdef * | e | ) |
Definition at line 255 of file protobuf/php/ext/google/protobuf/protobuf.c.
| void NameMap_AddMessage | ( | const upb_msgdef * | m | ) |
Definition at line 249 of file protobuf/php/ext/google/protobuf/protobuf.c.
| const upb_enumdef* NameMap_GetEnum | ( | zend_class_entry * | ce | ) |
Definition at line 285 of file protobuf/php/ext/google/protobuf/protobuf.c.
| const upb_msgdef* NameMap_GetMessage | ( | zend_class_entry * | ce | ) |
Definition at line 261 of file protobuf/php/ext/google/protobuf/protobuf.c.
| void ObjCache_Add | ( | const void * | upb_obj, |
| zend_object * | php_obj | ||
| ) |
Definition at line 219 of file protobuf/php/ext/google/protobuf/protobuf.c.
| void ObjCache_Delete | ( | const void * | upb_obj | ) |
Definition at line 224 of file protobuf/php/ext/google/protobuf/protobuf.c.
Definition at line 232 of file protobuf/php/ext/google/protobuf/protobuf.c.
|
static |
Definition at line 161 of file protobuf/php/ext/google/protobuf/protobuf.c.
|
static |
Definition at line 155 of file protobuf/php/ext/google/protobuf/protobuf.c.
|
static |
Definition at line 322 of file protobuf/php/ext/google/protobuf/protobuf.c.
|
static |
This function is run at the beginning of processing each request.
Definition at line 171 of file protobuf/php/ext/google/protobuf/protobuf.c.
|
static |
PHP_RSHUTDOWN_FUNCTION(protobuf)
This function is run at the end of processing each request.
Definition at line 193 of file protobuf/php/ext/google/protobuf/protobuf.c.
| STD_PHP_INI_ENTRY | ( | "protobuf.keep_descriptor_pool_after_request" | , |
| "0" | , | ||
| PHP_INI_ALL | , | ||
| OnUpdateBool | , | ||
| keep_descriptor_pool_after_request | , | ||
| zend_protobuf_globals | , | ||
| protobuf_globals | |||
| ) |
Definition at line 305 of file protobuf/php/ext/google/protobuf/protobuf.c.
| HashTable descriptors |
Definition at line 82 of file protobuf/php/ext/google/protobuf/protobuf.c.
| zval generated_pool |
Definition at line 63 of file protobuf/php/ext/google/protobuf/protobuf.c.
| upb_symtab* global_symtab |
Definition at line 69 of file protobuf/php/ext/google/protobuf/protobuf.c.
| zend_bool keep_descriptor_pool_after_request |
Definition at line 57 of file protobuf/php/ext/google/protobuf/protobuf.c.
| HashTable name_enum_cache |
Definition at line 76 of file protobuf/php/ext/google/protobuf/protobuf.c.
| HashTable name_msg_cache |
Definition at line 75 of file protobuf/php/ext/google/protobuf/protobuf.c.
| HashTable object_cache |
Definition at line 72 of file protobuf/php/ext/google/protobuf/protobuf.c.
|
static |
Definition at line 299 of file protobuf/php/ext/google/protobuf/protobuf.c.
| zend_function_entry protobuf_functions[] |
Definition at line 295 of file protobuf/php/ext/google/protobuf/protobuf.c.
| zend_module_entry protobuf_module_entry |
Definition at line 327 of file protobuf/php/ext/google/protobuf/protobuf.c.