~ubuntu-branches/ubuntu/vivid/php-apcu/vivid

« back to all changes in this revision

Viewing changes to apcu-4.0.6/apc_bin_api.h

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2014-06-24 10:52:52 UTC
  • mfrom: (7.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20140624105252-vsqs1r4og4ykucqg
Tags: 4.0.6-1
* New upstream version 4.0.6
* Remove PHP 5.6 support patch - merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  +----------------------------------------------------------------------+
 
3
  | APC                                                                  |
 
4
  +----------------------------------------------------------------------+
 
5
  | Copyright (c) 2006-2011 The PHP Group                                |
 
6
  +----------------------------------------------------------------------+
 
7
  | This source file is subject to version 3.01 of the PHP license,      |
 
8
  | that is bundled with this package in the file LICENSE, and is        |
 
9
  | available through the world-wide-web at the following url:           |
 
10
  | http://www.php.net/license/3_01.txt                                  |
 
11
  | If you did not receive a copy of the PHP license and are unable to   |
 
12
  | obtain it through the world-wide-web, please send a note to          |
 
13
  | license@php.net so we can mail you a copy immediately.               |
 
14
  +----------------------------------------------------------------------+
 
15
  | Authors: Brian Shire <shire@php.net>                                 |
 
16
  +----------------------------------------------------------------------+
 
17
 
 
18
 */
 
19
 
 
20
/* $Id: apc_bin_api.h 328743 2012-12-12 07:58:32Z ab $ */
 
21
 
 
22
#ifndef APC_BIN_API_H
 
23
#define APC_BIN_API_H
 
24
 
 
25
#include "ext/standard/basic_functions.h"
 
26
 
 
27
/* APC binload flags */
 
28
#define APC_BIN_VERIFY_MD5    1 << 0
 
29
#define APC_BIN_VERIFY_CRC32  1 << 1
 
30
 
 
31
typedef struct _apc_bd_entry_t {
 
32
    unsigned char type;
 
33
    uint num_functions;
 
34
    uint num_classes;
 
35
        struct {
 
36
                char*  str;
 
37
                uint   len;
 
38
        } key;
 
39
    apc_cache_entry_t val;
 
40
} apc_bd_entry_t;
 
41
 
 
42
typedef struct _apc_bd_t {
 
43
    unsigned int size;
 
44
    int swizzled;
 
45
    unsigned char md5[16];
 
46
    php_uint32 crc;
 
47
    unsigned int num_entries;
 
48
    apc_bd_entry_t *entries;
 
49
    int num_swizzled_ptrs;
 
50
    void ***swizzled_ptrs;
 
51
} apc_bd_t;
 
52
 
 
53
PHP_APCU_API apc_bd_t* apc_bin_dump(apc_cache_t* cache, HashTable *user_vars TSRMLS_DC);
 
54
PHP_APCU_API int apc_bin_load(apc_cache_t* cache, apc_bd_t *bd, int flags TSRMLS_DC);
 
55
 
 
56
#endif
 
57
 
 
58
/*
 
59
 * Local variables:
 
60
 * tab-width: 4
 
61
 * c-basic-offset: 4
 
62
 * End:
 
63
 * vim600: expandtab sw=4 ts=4 sts=4 fdm=marker
 
64
 * vim<600: expandtab sw=4 ts=4 sts=4
 
65
 */