Define a small set of constant return values
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 4 Feb 2010 18:46:12 +0000 (18:46 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 4 Feb 2010 18:46:12 +0000 (18:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@244728 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/manager.h

index 35fea8e..0506c24 100644 (file)
 #define AMI_VERSION                     "1.1"
 #define DEFAULT_MANAGER_PORT 5038      /* Default port for Asterisk management via TCP */
 
+/*! \name Constant return values
+ *\note Currently, returning anything other than zero causes the session to terminate.
+ */
+/*@{ */
+#define        AMI_SUCCESS     (0)
+#define        AMI_DESTROY     (-1)
+
 /*! \name Manager event classes */
 /*@{ */
 #define EVENT_FLAG_SYSTEM              (1 << 0) /* System events such as module load/unload */