cvs: php4 /ext/ccvs ccvs.c

From: Date: Wed, 11 Oct 2000 13:34:42 +0000
Subject: cvs: php4 /ext/ccvs ccvs.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1987@lists.php.net to get a copy of this message
hholzgra Wed Oct 11 06:34:42 2000 EDT Modified files: /php4/ext/ccvs ccvs.c Log: added protos Index: php4/ext/ccvs/ccvs.c diff -u php4/ext/ccvs/ccvs.c:1.9 php4/ext/ccvs/ccvs.c:1.10 --- php4/ext/ccvs/ccvs.c:1.9 Thu Oct 5 11:20:06 2000 +++ php4/ext/ccvs/ccvs.c Wed Oct 11 06:34:42 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ /* -* cvvs.c $Revision: 1.9 $ - PHP4 Interface to the RedHat CCVS API +* cvvs.c $Revision: 1.10 $ - PHP4 Interface to the RedHat CCVS API * ------- * Interfaces RedHat's CCVS [Credit Card Verification System] <http://www.redhat.com/products/ccvs/> * This code is ported from an original php3 interface written by RedHat's Doug DeJulio <ddj@redhat.com> @@ -27,10 +27,10 @@ /* * Code started on 2000.07.24@09.04.EST by Brendan W. McAdams <bmcadams@php.net> -* $Revision: 1.9 $ +* $Revision: 1.10 $ */ -static char const cvsid[] = "$Id: ccvs.c,v 1.9 2000/10/05 18:20:06 bmcadams Exp $"; +static char const cvsid[] = "$Id: ccvs.c,v 1.10 2000/10/11 13:34:42 hholzgra Exp $"; #include <php.h> #include <stdlib.h> @@ -107,6 +107,8 @@ /* Full Functions (The actual CCVS functions and any internal php hooked functions such as MINFO) */ +/* {{{ proto string ccvs_init(string name) + ??? */ PHP_FUNCTION(ccvs_init) /* cv_init() */ { zval **name; @@ -151,7 +153,10 @@ free(p); return; } +/* }}} */ +/* {{{ proto string ccvs_done(string sess) + ??? */ PHP_FUNCTION(ccvs_done) /* cv_done() */ { zval **sess; @@ -170,7 +175,10 @@ RETURN_STRING("OK", 1); } +/* }}} */ +/* {{{ proto string ccvs_new(string session, string invoice) + ??? */ PHP_FUNCTION(ccvs_new) /* cv_new() */ { zval **psess; @@ -194,7 +202,10 @@ RETURN_STRING(cv_ret2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_add(string session, string invoice, string argtype, string argval) + ??? */ PHP_FUNCTION(ccvs_add) /* cv_add() */ { zval **psess; @@ -226,6 +237,7 @@ RETURN_STRING(cv_ret2str(r), 1); } +/* }}} */ /* * cv_create can't be implemented because of vararg limits in PHP3's C API. @@ -236,6 +248,9 @@ * to the CCVS C API ref. I didn't try to implement it for that reason. If anyone needs it, they can add it in * themselves I'm sure. */ + +/* {{{ proto string ccvs_delete(string session, string invoice) + ??? */ PHP_FUNCTION(ccvs_delete) /* cv_delete() */ { zval **psess; @@ -258,7 +273,10 @@ RETURN_STRING(cv_ret2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_auth(string session, string invoice) + ??? */ PHP_FUNCTION(ccvs_auth) /* cv_auth() */ { zval **psess; @@ -281,7 +299,10 @@ RETURN_STRING(cv_ret2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_return(string session, string invoice) + ??? */ PHP_FUNCTION(ccvs_return) /* cv_return() */ { zval **psess; @@ -304,7 +325,10 @@ RETURN_STRING(cv_ret2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_reverse(string session, string invoice) + ??? */ PHP_FUNCTION(ccvs_reverse) /* cv_reverse() */ { zval **psess; @@ -327,7 +351,10 @@ RETURN_STRING(cv_ret2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_sale(string session, string invoice) + ??? */ PHP_FUNCTION(ccvs_sale) /* cv_sale() */ { zval **psess; @@ -350,7 +377,10 @@ RETURN_STRING(cv_ret2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_void(string session, string invoice) + ??? */ PHP_FUNCTION(ccvs_void) /* cv_void() */ { zval **psess; @@ -373,7 +403,10 @@ RETURN_STRING(cv_ret2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_status(string session, string invoice) + ??? */ PHP_FUNCTION(ccvs_status) /* cv_status() */ { zval **psess; @@ -396,7 +429,10 @@ RETURN_STRING(cv_stat2str(r), 1); } +/* }}} */ +/* {{{ proto int ccvs_count(string session, string type) + ??? */ PHP_FUNCTION(ccvs_count) /* cv_count() */ { zval **psess; @@ -419,7 +455,10 @@ RETURN_LONG(r); } +/* }}} */ +/* {{{ proto string ccvs_lookup(string session, string invoice, int inum) + ??? */ PHP_FUNCTION(ccvs_lookup) /* cv_lookup() */ { zval **psess; @@ -446,7 +485,10 @@ RETURN_STRING(cv_textvalue(sess), 1); } +/* }}} */ +/* {{{ proto string ccvs_report(string session, string type) + ??? */ PHP_FUNCTION(ccvs_report) /* cv_report() */ { zval **psess; @@ -470,7 +512,10 @@ RETURN_STRING(cv_stat2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_command(string session, string type, string argval) + ??? */ PHP_FUNCTION(ccvs_command) /* cv_command() */ { zval **psess; @@ -497,7 +542,10 @@ RETURN_STRING(cv_stat2str(r), 1); } +/* }}} */ +/* {{{ proto string ccvs_textvalue(string session) + ??? */ PHP_FUNCTION(ccvs_textvalue) /* cv_textvalue() */ { zval **psess; @@ -513,6 +561,7 @@ RETURN_STRING(cv_textvalue(sess), 1); } +/* }}} */ /* * Our Info Function which reports info on this module out to PHP's phpinfo() function

« previous php.cvs (#1987) next »