Fixes deprecated features in PHP 5.3.x.
[banana.git] / banana / protocoleinterface.inc.php
index 600ff19..e059ec5 100644 (file)
@@ -19,7 +19,7 @@ interface BananaProtocoleInterface
      */
     public function isValid();
     
-    /** Indicate last error n°
+    /** Indicate last error n°
      */
     public function lastErrNo();
     
@@ -90,12 +90,12 @@ interface BananaProtocoleInterface
     /** Send a message
      * @return true if it was successfull
      */
-    public function send(BananaMessage &$message);
+    public function send(BananaMessage $message);
 
     /** Cancel a message
      * @return true if it was successfull
      */
-    public function cancel(BananaMessage &$message);
+    public function cancel(BananaMessage $message);
 
     /** Return the protocole name
      */
@@ -105,7 +105,15 @@ interface BananaProtocoleInterface
      * @param box STRING boxname
      */
     public function filename();
+
+    /** Return the execution backtrace of the protocole
+     * @return array(trace1, trace2, ...)
+     * a trace has the following structure:
+     *  array('action' => action, 'time' => microtime, 'code' => return code, 'response' => size of the response)
+     * if no backtrace is available, return null
+     */
+    public function backtrace();
 }
 
-// vim:set et sw=4 sts=4 ts=4:
+// vim:set et sw=4 sts=4 ts=4 enc=utf-8:
 ?>