/* ex: set tabstop=4 shiftwidth=4 autoindent: +-------------------------------------------------------------------------+ | Copyright (C) 2004-2026 The Cacti Group | | | | This program is free software; you can redistribute it and/or | | modify it under the terms of the GNU Lesser General Public | | License as published by the Free Software Foundation; either | | version 2.1 of the License, or (at your option) any later version. | | | | This program is distributed in the hope that it will be useful, | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | GNU Lesser General Public License for more details. | | | | You should have received a copy of the GNU Lesser General Public | | License along with this library; if not, write to the Free Software | | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | | 02110-1301, USA | | | +-------------------------------------------------------------------------+ | spine: a backend data gatherer for cacti | +-------------------------------------------------------------------------+ | This poller would not have been possible without: | | - Larry Adams (current development and enhancements) | | - Rivo Nurges (rrd support, mysql poller cache, misc functions) | | - RTG (core poller code, pthreads, snmp, autoconf examples) | | - Brady Alleman/Doug Warner (threading ideas, implementation details) | +-------------------------------------------------------------------------+ | - Cacti - http://www.cacti.net/ | +-------------------------------------------------------------------------+ */ #ifndef SPINE_PHP_H #define SPINE_PHP_H extern char *php_cmd(const char *php_command, int php_process); extern char *php_readpipe(int php_process, const char *command); extern void php_command_script(const char *command, char *script, size_t capacity); extern int php_init(int php_process); extern void php_close(int php_process); extern int php_get_process(void); extern void php_processes_initialize(php_t *processes, int count); #ifdef SPINE_PHP_RUNTIME_TESTING extern ssize_t php_write_no_sigpipe_for_test(int fd, const void *buffer, size_t length); extern char *php_read_result_for_test(int php_process, char *command, int allow_restart); #endif #endif /* SPINE_PHP_H */