File: php_gearman.h

package info (click to toggle)
php-gearman 2.0.2%2B1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 868 kB
  • ctags: 723
  • sloc: ansic: 7,092; php: 826; xml: 570; sh: 32; makefile: 1
file content (28 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (5)
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
/*
 * Gearman PHP Extension
 *
 * Copyright (C) 2008 James M. Luedke <contact@jamesluedke.com>,
 *                    Eric Day <eday@oddments.org>
 * All rights reserved.
 *
 * Use and distribution licensed under the PHP license.  See
 * the LICENSE file in this directory for full text.
 */

#ifndef __PHP_GEARMAN_H
#define __PHP_GEARMAN_H

/* module version */
#define PHP_GEARMAN_VERSION "1.1.2"

#ifdef ZTS
#include "TSRM.h"
#define GEARMAN_G(v) TSRMG(gearman_globals_id, zend_gearman_globals *, v)
#else
#define GEARMAN_G(v) (gearman_globals.v)
#endif

extern zend_module_entry gearman_module_entry;
#define phpext_gearman_ptr &gearman_module_entry

#endif  /* __PHP_GEARMAN_H */