cvs: php4 /ext/midgard attachment.c

From: Date: Wed, 28 Feb 2001 15:50:06 +0000
Subject: cvs: php4 /ext/midgard attachment.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4298@lists.php.net to get a copy of this message
davidg Wed Feb 28 07:50:06 2001 EDT Modified files: /php4/ext/midgard attachment.c Log: function reference: attachments Index: php4/ext/midgard/attachment.c diff -u php4/ext/midgard/attachment.c:1.6 php4/ext/midgard/attachment.c:1.7 --- php4/ext/midgard/attachment.c:1.6 Tue Feb 27 17:00:31 2001 +++ php4/ext/midgard/attachment.c Wed Feb 28 07:50:06 2001 @@ -1,4 +1,4 @@ -/* $Id: attachment.c,v 1.6 2001/02/28 01:00:31 davidg Exp $ +/* $Id: attachment.c,v 1.7 2001/02/28 15:50:06 davidg Exp $ Copyright (C) 1999 Jukka Zitting <jukka.zitting@iki.fi> Copyright (C) 2000 The Midgard Project ry Copyright (C) 2000 Emile Heyns, Aurora SA <emile@iris-advies.com> @@ -70,7 +70,7 @@ (*name)->value.str.val); } -MGD_FUNCTION(ret_type, oop_attachment_create, (type param)) +MGD_FUNCTION(int, oop_attachment_create, (string name, string title, string mimetype, [int score])) { zval *self; zval **zv_table, **zv_id; @@ -192,7 +192,7 @@ mgd_free_pool(pool); } -MGD_FUNCTION(ret_type, oop_attachment_list, (type param)) +MGD_FUNCTION(mixed, oop_attachment_list, ([string sort])) { zval *self, **zv_table, **zv_id, **zv_order; char *order = NULL; @@ -229,7 +229,7 @@ (*zv_table)->value.str.val, (*zv_id)->value.lval); } -MGD_FUNCTION(ret_type, open_attachment, (type param)) +MGD_FUNCTION(int, open_attachment, ([int id, [string mode]])) { int pid; int ptable; @@ -330,7 +330,7 @@ mgd_release(res); } -MGD_FUNCTION(ret_type, get_attachment, (type param)) +MGD_FUNCTION(mixed, get_attachment, (int id)) { zval **id; zval *self; @@ -338,11 +338,6 @@ CHECK_MGD; switch (ZEND_NUM_ARGS()) { - /* EEH/TODO: Why this? - case 0: - php_midgard_bless(return_value, &MidgardAttachment); - return; - */ case 1: if (zend_get_parameters_ex(1, &id) != SUCCESS) WRONG_PARAM_COUNT; break; @@ -359,7 +354,7 @@ php_midgard_get_object(return_value, MIDGARD_OBJECT_BLOBS, aid); } -MGD_FUNCTION(ret_type, serve_attachment, (type param)) +MGD_FUNCTION(bool, serve_attachment, (int id)) { midgard_res *res; const char *location, *mimetype; @@ -450,7 +445,7 @@ RETVAL_TRUE; } -MGD_FUNCTION(ret_type, stat_attachment, (type param)) +MGD_FUNCTION(mixed, stat_attachment, (int id)) { midgard_res *res; const char *location; @@ -537,7 +532,7 @@ #endif } -MGD_FUNCTION(ret_type, delete_attachment, (type param)) +MGD_FUNCTION(bool, delete_attachment, (int id)) { int pid; int ptable; @@ -610,7 +605,7 @@ mgd_release(res); } -MGD_FUNCTION(ret_type, update_attachment, (type param)) +MGD_FUNCTION(bool, update_attachment, (int id, string name, string title, string mimetype, [int score, [int author]])) { zval **id, **name, **title, **mimetype, **score, **author, *self; int ptable, pid;

« previous php.cvs (#4298) next »