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

ctford nobody at lists.annodex.net
Thu Jan 5 13:44:04 EST 2006


Update of /annodex (new revision 1747)

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

Log Message:
anx_get_basetime() now supported.

Modified: phpannodex/trunk/src/phpanx_general.c
===================================================================
--- phpannodex/trunk/src/phpanx_general.c	2006-01-05 00:13:52 UTC (rev 1746)
+++ phpannodex/trunk/src/phpanx_general.c	2006-01-05 02:44:03 UTC (rev 1747)
@@ -167,6 +167,26 @@
 	RETURN_RESOURCE( resource_id );
 }
 
+PHP_FUNCTION(anx_get_basetime)
+{
+	ANNODEX *anx;
+	double basetime;
+	zval *anx_resource;
+
+	/* Process arguments */
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", 
+			&anx_resource) == FAILURE) {
+		RETURN_NULL();
+	}
+	ZEND_FETCH_RESOURCE( anx, ANNODEX*, &anx_resource, -1, 
+		LE_ANX_HANDLE_NAME, le_anx_handle);
+
+	/* Call Annodex function */
+	basetime = anx_get_basetime( anx );
+
+	RETURN_DOUBLE( basetime );
+}
+
 PHP_FUNCTION(anx_get_bitrate)
 {
 	ANNODEX *anx;

Modified: phpannodex/trunk/src/phpanx_general.h
===================================================================
--- phpannodex/trunk/src/phpanx_general.h	2006-01-05 00:13:52 UTC (rev 1746)
+++ phpannodex/trunk/src/phpanx_general.h	2006-01-05 02:44:03 UTC (rev 1747)
@@ -9,6 +9,7 @@
 	PHP_FE(anx_close, NULL)				\
 	PHP_FE(anx_ready, NULL)				\
 	PHP_FE(anx_set_head, NULL)			\
+	PHP_FE(anx_get_basetime, NULL)			\
 	PHP_FE(anx_get_bitrate, NULL)			\
 	PHP_FE(anx_get_duration, NULL)			\
 
@@ -19,6 +20,7 @@
 PHP_FUNCTION(anx_close);
 PHP_FUNCTION(anx_ready);
 PHP_FUNCTION(anx_set_head);
+PHP_FUNCTION(anx_get_basetime);
 PHP_FUNCTION(anx_get_bitrate);
 PHP_FUNCTION(anx_get_duration);
 


-- 
ctford



More information about the cvs-annodex mailing list