SILC Runtime Toolkit 1.2 Beta 1
[runtime.git] / lib / silcutil / silcerrno.h
index f8e8f15f5649556ec79d9ac9b9bad3b787481b4d..f3c355c97110e3a5977c5b4267ee9e6ad106ade2 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-/****h* silcutil/SILC Errno
+/****h* silcutil/Errno Interface
  *
  * DESCRIPTION
  *
@@ -44,7 +44,7 @@
  * // Get the detailed reason for the error too
  * if (silc_some_routine() == FALSE) {
  *   fprintf(stderr, "%s (%d) (%s)", silc_errno_string(silc_errno),
- *          silc_errno, silc_errno_reason);
+ *          silc_errno, silc_errno_reason());
  *   exit(1);
  * }
  *
@@ -53,7 +53,7 @@
 #ifndef SILCERRNO_H
 #define SILCERRNO_H
 
-/****d* silcutil/SilcErrnoAPI/SilcResult
+/****d* silcutil/SilcResult
  *
  * NAME
  *
@@ -94,6 +94,7 @@ typedef enum {
   SILC_ERR_INTERRUPTED                 = 23,  /* Interrupted */
   SILC_ERR_NOT_VALID                   = 24,  /* Not valid */
   SILC_ERR_LIMIT                       = 25,  /* Limit reached */
+  SILC_ERR_SYNTAX                      = 26,  /* Syntax error */
 
   /* File, directory and device errors */
   SILC_ERR_NO_SUCH_FILE                = 40,  /* No such file */
@@ -139,7 +140,7 @@ typedef enum {
 } SilcResult;
 /***/
 
-/****d* silcutil/SilcErrnoAPI/silc_errno
+/****d* silcutil/silc_errno
  *
  * NAME
  *
@@ -153,7 +154,7 @@ typedef enum {
  ***/
 #define silc_errno silc_get_errno()
 
-/****f* silcutil/SilcErrnoAPI/silc_errno_string
+/****f* silcutil/silc_errno_string
  *
  * NAME
  *
@@ -167,7 +168,7 @@ typedef enum {
  ***/
 const char *silc_errno_string(SilcResult error);
 
-/****d* silcutil/SilcErrnoAPI/silc_errno_string
+/****d* silcutil/silc_errno_reason
  *
  * NAME
  *