[srm-cvs] CVS Update: - Added srm_get_banana_dir() to retrieve the path to the banana dir

From: <d.rethans[@]jdimedia.nl>
Date: Mon Sep 02 2002 - 08:51:47 CEST

Date: Mon Sep 2 08:51:46 CEST 2002
User: Derick Rethans
Directory: sapi_srm

Log Message:
 [0.15]
 - Added srm_get_banana_dir() to retrieve the path to the banana dir
 
Modified files:
           sapi_srm/srm.c (version: 1.52)
           sapi_srm/srm.h (version: 1.10)

[FILE: /sapi_srm/srm.c]

--- sapi_srm/srm.c:1.51 Wed Jun 19 23:12:13 2002 GMT
+++ sapi_srm/srm.c Mon Sep 02 04:51:46 2002 GMT
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: cvstemp,v 1.51 2002/06/20 01:12:13 sniper Exp $ */
+/* $Id: cvstemp,v 1.52 2002/09/02 06:51:46 derick Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -602,6 +602,7 @@
         SRM_FE (start_banana, NULL)
         SRM_FE (banana_function_call, NULL)
         SRM_FE (get_loaded_bananas, NULL)
+ SRM_FE (get_banana_dir, NULL)
 END_FUNC_LIST
 
 /* SRM Module entry struct */
@@ -924,6 +925,15 @@
         list = srm_llist_alloc (SRM_LLIST_VALUE_FREE);
         srm_hash_apply (srmapp_hash, (void*) list, srm_add_banana_info_to_list);
         SRM_RETVAL_LIST(list);
+}
+/* }}} */
+
+
+/* {{{ function string srm_get_banana_dir()
+ Returns the banana_dir setting */
+SRM_FUNCTION(srm_get_banana_dir)
+{
+ SRM_RETVAL_STR(INI_SETTING(class_path), 0);
 }
 /* }}} */
 

[FILE: /sapi_srm/srm.h]

--- sapi_srm/srm.h:1.9 Fri Apr 12 15:59:45 2002 GMT
+++ sapi_srm/srm.h Mon Sep 02 04:51:46 2002 GMT
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: cvstemp,v 1.9 2002/04/12 17:59:45 derick Exp $ */
+/* $Id: cvstemp,v 1.10 2002/09/02 06:51:46 derick Exp $ */
 
 #ifndef __SAPI_SRM_H__
 #define __SAPI_SRM_H__
@@ -61,4 +61,5 @@
 SRM_FUNCTION(banana_function_call);
 SRM_FUNCTION(get_loaded_bananas);
 SRM_FUNCTION(php_function_callback);
+SRM_FUNCTION(get_banana_dir);
 #endif
Received on Mon Sep 2 09:27:09 2002

This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 06:00:02 CET