• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 #ifndef PHP_PROTOBUF_ARENA_H_
9 #define PHP_PROTOBUF_ARENA_H_
10 
11 #include <php.h>
12 
13 #include "php-upb.h"
14 
15 // Registers the PHP Arena class.
16 void Arena_ModuleInit();
17 
18 // Creates and returns a new arena object that wraps a new upb_Arena*.
19 void Arena_Init(zval* val);
20 
21 // Gets the underlying upb_Arena from this arena object.
22 upb_Arena* Arena_Get(zval* arena);
23 
24 #endif  // PHP_PROTOBUF_ARENA_H_
25