]> granicus.if.org Git - php/commitdiff
Added msession_call
authorMark L. Woodward <mlwmohawk@php.net>
Sat, 22 Dec 2001 02:10:43 +0000 (02:10 +0000)
committerMark L. Woodward <mlwmohawk@php.net>
Sat, 22 Dec 2001 02:10:43 +0000 (02:10 +0000)
ext/msession/php_msession.h
ext/msession/reqclient.h

index 470f80ad032e96e7ac43813cbe7264f6b63ca2ba..04736f07ee08d58ee30507b8943edb966b328a29 100644 (file)
@@ -1,8 +1,8 @@
 /*
    +----------------------------------------------------------------------+
-   | PHP Version 4                                                        |
+   | PHP version 4.x                                                      |
    +----------------------------------------------------------------------+
-   | Copyright (c) 1997-2002 The PHP Group                                |
+   | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group             |
    +----------------------------------------------------------------------+
    | This source file is subject to version 2.02 of the PHP license,      |
    | that is bundled with this package in the file LICENSE, and is        |
@@ -40,7 +40,6 @@ PHP_RINIT_FUNCTION(msession);
 PHP_RSHUTDOWN_FUNCTION(msession);
 PHP_MINFO_FUNCTION(msession);
 
-PHP_FUNCTION(confirm_msession_compiled);       /* For testing, remove later. */
 PHP_FUNCTION(msession_connect);
 PHP_FUNCTION(msession_disconnect);
 PHP_FUNCTION(msession_lock);
@@ -62,6 +61,7 @@ PHP_FUNCTION(msession_list);
 PHP_FUNCTION(msession_uniq);
 PHP_FUNCTION(msession_randstr);
 PHP_FUNCTION(msession_plugin);
+PHP_FUNCTION(msession_call);
 
 /* 
        Declare any global variables you may need between the BEGIN
index 5478970a00396a8766840a0eb148833927b3f553..e67c983dd7acf06615443de3bee00d5f2360d1bb 100644 (file)
@@ -2,7 +2,7 @@
    +----------------------------------------------------------------------+
    | msession 1.0                                                         |
    +----------------------------------------------------------------------+
-   | Copyright (c) 1997-2002 The PHP Group                                |
+   | Copyright (c) 1997-2001 The PHP Group                                |
    +----------------------------------------------------------------------+
    | This source file is subject to version 2.02 of the PHP license,      |
    | that is bundled with this package in the file LICENSE, and is        |
    +----------------------------------------------------------------------+
  */
 
+/*
+--------------------------------------------------------------------------
+       These are definitions are pulled from Phoenix.
+       It would probably be easier to maintain one file, 
+       but some phoenix header files conflict with other
+       project header files common to PHP. Besides, this
+       allows this header to be PHP license and Phoenix to
+       be LGPL with no conflicts.
+
+       MAKE NO CHANGES TO THIS FILE IT. MUST REMAIN CONSTANT
+       WITH PHOENIX OR IT WILL NOT WORK.
+--------------------------------------------------------------------------
+*/
 enum REQ_TYPES
 {
        REQ_ERR,
@@ -41,10 +54,30 @@ enum REQ_TYPES
        REQ_UNIQ,
        REQ_RANDSTR,
        REQ_PLUGIN,
+       REQ_CALL,
        REQ_LAST,
        REQ_POPEN=1024,
        REQ_PCLOSE
 };
+enum REQ_ERRORS
+{
+       REQE_NOERROR=0,
+       REQE_NOSESSION,
+       REQE_DUPSESSION,
+       REQE_NOWLOCK,
+       REQE_NOVALUE,
+       REQE_LOCKED,
+       REQE_NOSEND,
+       REQE_NOCONNECT,
+       REQE_BADCONN,
+       REQE_BADHDR,
+       REQE_BADVER,
+       REQE_BADLEN,
+       REQE_BUFFER,
+       REQE_DENIED,
+       REQE_NOFN,
+       REQE_UNKNOWN
+};
 
 typedef struct _requestPacket
 {
@@ -86,6 +119,7 @@ REQB *StaticRequestBuffer(char *buffer, unsigned int cb);
 
 int FormatRequest(REQB **buffer, int stat, const char *session, const char *name, const char *value, int param);
 int FormatRequestMulti(REQB **buffer, int stat, char *session, int n, char **pairs, int param);
+int FormatRequestStrings(REQB **ppreq, int stat, char *session, int n, char **strings);
 int DoSingleRequest(char *hostname, int port, REQB **preq);
 void *OpenReqConn(char *hostname, int port);
 void CloseReqConn(void *conn);