root/ext/sysvmsg/php_sysvmsg.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2   +----------------------------------------------------------------------+
   3   | PHP Version 5                                                        |
   4   +----------------------------------------------------------------------+
   5   | Copyright (c) 1997-2016 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   | Author: Wez Furlong <wez@thebrainroom.com>                           |
  16   +----------------------------------------------------------------------+
  17 */
  18 
  19 /* $Id$ */
  20 
  21 #ifndef PHP_SYSVMSG_H
  22 #define PHP_SYSVMSG_H
  23 
  24 #if HAVE_SYSVMSG
  25 
  26 extern zend_module_entry sysvmsg_module_entry;
  27 #define phpext_sysvmsg_ptr &sysvmsg_module_entry
  28 
  29 #ifndef __USE_GNU
  30 /* we want to use mtype instead of __mtype */
  31 #define __USE_GNU
  32 #endif
  33 
  34 #include <sys/types.h>
  35 #include <sys/ipc.h>
  36 #include <sys/msg.h>
  37 
  38 #ifdef ZTS
  39 #include "TSRM.h"
  40 #endif
  41 
  42 PHP_MINIT_FUNCTION(sysvmsg);
  43 PHP_MINFO_FUNCTION(sysvmsg);
  44 
  45 PHP_FUNCTION(msg_get_queue);
  46 PHP_FUNCTION(msg_remove_queue);
  47 PHP_FUNCTION(msg_stat_queue);
  48 PHP_FUNCTION(msg_set_queue);
  49 PHP_FUNCTION(msg_send);
  50 PHP_FUNCTION(msg_receive);
  51 PHP_FUNCTION(msg_queue_exists);
  52 
  53 typedef struct {
  54         key_t key;
  55         long id;
  56 } sysvmsg_queue_t;
  57 
  58 struct php_msgbuf {
  59         long mtype;
  60         char mtext[1];
  61 };
  62 
  63 #endif /* HAVE_SYSVMSG */
  64 
  65 #endif  /* PHP_SYSVMSG_H */
  66 
  67 
  68 /*
  69  * Local variables:
  70  * tab-width: 4
  71  * c-basic-offset: 4
  72  * indent-tabs-mode: t
  73  * End:
  74  */

/* [<][>][^][v][top][bottom][index][help] */