[cvs-annodex] commit (/annodex): phpannodex/trunk/src/phpannodex.h phpannodex/trunk/src/phpanx_write.c phpannodex/trunk/src/phpanx_write.h

ctford nobody at lists.annodex.net
Mon Dec 5 12:38:32 EST 2005


Update of /annodex (new revision 1678)

Modified files:
   phpannodex/trunk/src/phpannodex.h
   phpannodex/trunk/src/phpanx_write.c
   phpannodex/trunk/src/phpanx_write.h

Log Message:
Empty C definitions for anx_write, anx_read, anx_open and anx_close are all in place.

Modified: phpannodex/trunk/src/phpannodex.h
===================================================================
--- phpannodex/trunk/src/phpannodex.h	2005-12-05 01:16:46 UTC (rev 1677)
+++ phpannodex/trunk/src/phpannodex.h	2005-12-05 01:38:31 UTC (rev 1678)
@@ -13,15 +13,33 @@
 #define PHPANNODEX_VERSION "1.0"
 #define PHPANNODEX_EXTNAME "phpannodex"
 
+/* This array tells php what functions this extension provides.
+ */
 static function_entry phpannodex_functions[] = {
+
+	/* Functions defined in anx_general.h of the original Annodex libraries,
+	 * and phpanx_general.h of the phpannodex extension.
+	 */
 	PHP_FE(anx_open, NULL)
 	PHP_FE(anx_close, NULL)
+
+	/* Functions defined in anx_read.h of the original Annodex libraries,
+	 * and phpanx_read.h of the phpannodex extension.
+	 */
 	PHP_FE(anx_read, NULL)
 	PHP_FE(anx_set_read_track_callback, NULL)
 	PHP_FE(anx_set_read_clip_callback, NULL)
 	PHP_FE(anx_set_read_raw_callback, NULL)
 	PHP_FE(anx_set_read_stream_callback, NULL)
 	PHP_FE(anx_set_read_head_callback, NULL)
+
+	/* Functions defined in anx_write.h of the original Annodex libraries,
+	 * and phpanx_write.h of the phpannodex extension.
+	 */
+	PHP_FE(anx_write, NULL)
+	PHP_FE(anx_init_importers, NULL)
+	PHP_FE(anx_insert_clip, NULL)
+	PHP_FE(anx_write_import, NULL)
 	{NULL, NULL, NULL}
 };
 

Modified: phpannodex/trunk/src/phpanx_write.c
===================================================================
--- phpannodex/trunk/src/phpanx_write.c	2005-12-05 01:16:46 UTC (rev 1677)
+++ phpannodex/trunk/src/phpanx_write.c	2005-12-05 01:38:31 UTC (rev 1678)
@@ -4,3 +4,17 @@
 
 #include <annodex/annodex.h>
 
+PHP_FUNCTION(anx_write)
+{
+	long ptr_long, n;
+	ANNODEX *anx;
+
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", 
+			&ptr_long, &n) == FAILURE) {
+	RETURN_NULL();
+	}
+
+	anx = (ANNODEX*) ptr_long;
+
+	RETURN_TRUE;
+}

Modified: phpannodex/trunk/src/phpanx_write.h
===================================================================
--- phpannodex/trunk/src/phpanx_write.h	2005-12-05 01:16:46 UTC (rev 1677)
+++ phpannodex/trunk/src/phpanx_write.h	2005-12-05 01:38:31 UTC (rev 1678)
@@ -1,5 +1,10 @@
 #ifndef PHPANX_WRITE_H
 #define PHPANX_WRITE_H 1
 
+PHP_FUNCTION(anx_write);
+PHP_FUNCTION(anx_init_importers);
+PHP_FUNCTION(anx_insert_clip);
+PHP_FUNCTION(anx_write_import);
+
 #endif
 


-- 
ctford



More information about the cvs-annodex mailing list