| 1 |
/*****************************************************************************\ |
| 2 |
* $Id: php_genders.h,v 1.4 2010-02-02 00:04:34 chu11 Exp $ |
| 3 |
***************************************************************************** |
| 4 |
* Copyright (C) 2007-2019 Lawrence Livermore National Security, LLC. |
| 5 |
* Copyright (C) 2001-2007 The Regents of the University of California. |
| 6 |
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). |
| 7 |
* Written by Jim Garlick <[email protected]> and Albert Chu <[email protected]>. |
| 8 |
* UCRL-CODE-2003-004. |
| 9 |
* |
| 10 |
* This file is part of Genders, a cluster configuration database. |
| 11 |
* For details, see <http://www.llnl.gov/linux/genders/>. |
| 12 |
* |
| 13 |
* Genders is free software; you can redistribute it and/or modify it under |
| 14 |
* the terms of the GNU General Public License as published by the Free |
| 15 |
* Software Foundation; either version 2 of the License, or (at your option) |
| 16 |
* any later version. |
| 17 |
* |
| 18 |
* Genders is distributed in the hope that it will be useful, but WITHOUT ANY |
| 19 |
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 20 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 21 |
* details. |
| 22 |
* |
| 23 |
* You should have received a copy of the GNU General Public License along |
| 24 |
* with Genders. If not, see <http://www.gnu.org/licenses/>. |
| 25 |
\*****************************************************************************/ |
| 26 |
|
| 27 |
#ifndef PHP_GENDERS_H |
| 28 |
#define PHP_GENDERS_H |
| 29 |
|
| 30 |
extern zend_module_entry genders_module_entry; |
| 31 |
#define phpext_genders_ptr &genders_module_entry |
| 32 |
|
| 33 |
#ifdef PHP_WIN32 |
| 34 |
#define PHP_GENDERS_API __declspec(dllexport) |
| 35 |
#else |
| 36 |
#define PHP_GENDERS_API |
| 37 |
#endif |
| 38 |
|
| 39 |
#ifdef ZTS |
| 40 |
#include "TSRM.h" |
| 41 |
#endif |
| 42 |
|
| 43 |
PHP_MINIT_FUNCTION(genders); |
| 44 |
PHP_MSHUTDOWN_FUNCTION(genders); |
| 45 |
PHP_RINIT_FUNCTION(genders); |
| 46 |
PHP_RSHUTDOWN_FUNCTION(genders); |
| 47 |
PHP_MINFO_FUNCTION(genders); |
| 48 |
|
| 49 |
PHP_FUNCTION(genders_getnumattrs); |
| 50 |
PHP_FUNCTION(genders_getattr); |
| 51 |
PHP_FUNCTION(genders_getattr_all); |
| 52 |
PHP_FUNCTION(genders_getnodes); |
| 53 |
|
| 54 |
#ifdef ZTS |
| 55 |
#define GENDERS_G(v) TSRMG(genders_globals_id, zend_genders_globals *, v) |
| 56 |
#else |
| 57 |
#define GENDERS_G(v) (genders_globals.v) |
| 58 |
#endif |
| 59 |
|
| 60 |
#endif |