-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphp_modplayer.h
More file actions
41 lines (32 loc) · 897 Bytes
/
php_modplayer.h
File metadata and controls
41 lines (32 loc) · 897 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* PHP CLI AUDIO STREAMMER
*
* This is a extension to provide a stream of module audio files under
* the CLI SAPI. This library is licensed under the MIT license.
*
* Developed by: devSDMF <devsdmf@gmail.com>
*
*/
#ifndef PHP_MODPLAYER_H
#define PHP_MODPLAYER_H
extern zend_module_entry modplayer_module_entry;
#define phpext_mod_player_ptr &modplayer_module_entry;
#ifdef ZTS
#include "TSRM.h"
#endif
#define PHP_MODPLAYER_EXTNAME "modplayer"
#define PHP_MODPLAYER_VERSION "1.0.0"
ZEND_BEGIN_MODULE_GLOBALS(modplayer)
long pid;
ZEND_END_MODULE_GLOBALS(modplayer)
#ifdef ZTS
#define MODPLAYER_G(v) TSRM(modplayer_globals_id, zend_modplayer_globals *, v)
#else
#define MODPLAYER_G(v) (modplayer_globals.v)
#endif
PHP_MINIT_FUNCTION(modplayer);
PHP_MSHUTDOWN_FUNCTION(modplayer);
PHP_FUNCTION(modplayer_play);
PHP_FUNCTION(modplayer_getpid);
PHP_FUNCTION(modplayer_stop);
#endif