[asterisk-commits] dhubbard: branch group/http_mods r59941 - in /team/group/http_mods: include/a...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Apr 3 12:25:19 MST 2007


Author: dhubbard
Date: Tue Apr  3 14:25:18 2007
New Revision: 59941

URL: http://svn.digium.com/view/asterisk?view=rev&rev=59941
Log:
astman_verify_session_readpermissions() & astman_verify_session_writepermissions() should properly conform to CODING-GUIDELINES

Modified:
    team/group/http_mods/include/asterisk/manager.h
    team/group/http_mods/main/manager.c

Modified: team/group/http_mods/include/asterisk/manager.h
URL: http://svn.digium.com/view/asterisk/team/group/http_mods/include/asterisk/manager.h?view=diff&rev=59941&r1=59940&r2=59941
==============================================================================
--- team/group/http_mods/include/asterisk/manager.h (original)
+++ team/group/http_mods/include/asterisk/manager.h Tue Apr  3 14:25:18 2007
@@ -105,19 +105,21 @@
 */
 int ast_manager_unregister( char *action );
 
-/*! Verify a session's read permissions against a permission mask.  
- *  returns a non-zero response if the session has the permission mask capabilities */
-/*!	\param ident session identity
- * 	\param perm permission mask to verify
+/*! 
+ * \brief Verify a session's read permissions against a permission mask.  
+ * \param ident session identity
+ * \param perm permission mask to verify
+ * \returns 1 if the session has the permission mask capabilities, otherwise 0
  */
-int verify_session_readpermissions(unsigned long ident, int perm);
+int astman_verify_session_readpermissions(unsigned long ident, int perm);
 
-/*! Verify a session's write permissions against a permission mask.  
- *  returns a non-zero response if the session has the permission mask capabilities */
-/*!	\param ident session identity
- * 	\param perm permission mask to verify
+/*!
+ * \brief Verify a session's write permissions against a permission mask.  
+ * \param ident session identity
+ * \param perm permission mask to verify
+ * \returns 1 if the session has the permission mask capabilities, otherwise 0
  */
-int verify_session_writepermissions(unsigned long ident, int perm);
+int astman_verify_session_writepermissions(unsigned long ident, int perm);
 
 /*! External routines may send asterisk manager events this way */
 /*! 	\param category	Event category, matches manager authorization

Modified: team/group/http_mods/main/manager.c
URL: http://svn.digium.com/view/asterisk/team/group/http_mods/main/manager.c?view=diff&rev=59941&r1=59940&r2=59941
==============================================================================
--- team/group/http_mods/main/manager.c (original)
+++ team/group/http_mods/main/manager.c Tue Apr  3 14:25:18 2007
@@ -2448,7 +2448,7 @@
 	return s;
 }
 
-int verify_session_readpermissions(unsigned long ident, int perm)
+int astman_verify_session_readpermissions(unsigned long ident, int perm)
 {
 	int result = 0;
 	struct mansession *s;
@@ -2467,7 +2467,7 @@
 	return result;
 }
 
-int verify_session_writepermissions(unsigned long ident, int perm)
+int astman_verify_session_writepermissions(unsigned long ident, int perm)
 {
 	int result = 0;
 	struct mansession *s;



More information about the asterisk-commits mailing list